 Cossacks such as Stenka Razin, Kondraty Bulavin, Ivan Mazepa and Yemelyan Pugachev led major anti-imperial wars and revolutions in the Empire in order to abolish slavery and harsh bureaucracy, and to maintain independence.The empire responded with executions and tortures, the destruction of the western part of the Don Cossack Host during the Bulavin Rebellion in 1707–1708, the destruction of Baturyn after Mazepa's rebellion in 1708, and the formal dissolution of the Lower Dnieper Zaporozhian Host after Pugachev's Rebellion in 1775.By the end of the 18th century, Cossack nations had been transformed into a special military estate ("sosloviye"), "a military class."