We studied the structure and multiferroic properties od epitaxial orthorhombic YMnO3 thin films and we found that the orientation of spontaneous electric polarization can be switched by magnetic field.