In recent years, the magnetic force microscope (MFM) has been used not only for the evaluation of magnetic media but also for the measurement of magnetic characteristics of quantum dots as well as in various fields, because the MFM can visualize magnetic field on the sample surface with the high resolution. The MFM observation in ultra-high vacuum (UHV) requires to reduce the adsorption layer on the sample surface for high resolution observation. The slope detection mode using the variation of vibrating cantilever is basically unstable in UHV due to the increase in the Q factor of the cantilever. Accordingly it has been used for the MFM observation in air. On the other hand, the FM detection technique offers a very high sensitivity because of the high Q factor.This repot describes the MFM technique to take a magnetic image steadily in UHV. We observed the surface of a magnetic material with MFM technique in UHV, and compared the slope detection technique, the phase detection technique using phase variation of cantilever vibration, and the FM detection technique.