The spin reorientation transition (SRT) of ultrathin Fe-Co alloy films on an Au(111) surface and the magnetic/structural phase transition of epitaxial MnAs films on a GaAs(100) surface are studied by two electron microscopic techniques with very high surface sensitivity, i.e. spin-polarized lowenergy electron microscopy (SPLEEM) and x-ray magnetic circular dichroism photoemission electron microscopy (XMCDPEEM), combined with low-energy electron microscopy (LEEM) and low-energy electron diffraction (LEED), respectively. A new SRT mechanism is found and the interrelation between ferromagnetism and structure is elucidated.