The Cossacks who lived in Zaporozhia were tasked in safeguarding the Russian Empire against the Crimean Khanate.