Nomadic Turkmen had begun moving into Anatolia a few years prior to the Battle of Manzikert. After 1071, Turkic migration into the region went largely unchecked. Both their number and the persuasive power of their religious leaders, nominally Islamized shamans known as babas or dedes, played a large part in the conversion of formerly Christian Anatolia. The Persianized Seljuq military class expended considerable effort keeping these nomads from invading areas inhabited by farmers and from harassing neighboring Christian states. The Turkmen were pushed into marginal lands, mostly mountainous and frontier districts.