We report on first results obtained by using magnetic force microscopy in ultrahigh vacuum (UHV) on different magnetic materials like soft (YSmLuCa)3(FeGe)5O12 magnetic garnet, Co/Pt multilayer sample and the high coercivity BaFe12O19 single crystal. We have prepared in UHV by electron beam evaporation magnetic sensors/tips which allowed us to reach high sensitivity and high resolution of our microscope. Ideal UHV conditions (pressure 5 × 10-11 Torr) helped us to observe domain wall contrast on all of studied samples by using a dynamic mode of operation of the force microscope.