The Cossacks are a predominantly East Slavic, Eastern Christian people, originating from the Pontic–Caspian steppe of eastern Ukraine and southern Russia. Cossacks played an important role in defending the southern borders of Ukraine and Russia, countering the Crimean-Nogai raids, alongside economically developing steppe regions north of the Black Sea and around the Azov Sea. Historically, they were a semi-nomadic and semi-militarized people, who were allowed a great degree of self-governance in exchange for military service under the nominal suzerainty of various Eastern European states. Although numerous ethnic, linguistic and religious groups came together to form the Cossacks, most of them gradually coalesced and Slavicized, thereby adopting East Slavic culture, East Slavic languages and Eastern Orthodox Christianity.
The rulers of the Polish–Lithuanian Commonwealth and Russian Empire endowed Cossacks with certain special privileges in return for the military duty to serve in the irregular troops: Zaporozhian Cossacks were mostly infantry soldiers, using war wagons, while Don Cossacks were mostly cavalry soldiers. The various Cossack groups were organized along military lines, with large autonomous groups called hosts. Each host had a territory consisting of affiliated villages called stanitsas.