the farmers in Germany, Sweden, or Poland. In contrast to the Baltic Germans, Estonians and Latvians had restricted civil rights and resided mostly in rural areas as serfs, tradesmen, or as servants in manors and urban homes. They had no rights to leave their masters and no last names. This was in keeping with the social scheme of things in Russian Empire, and lasted until the 19th century, when emancipation from serfdom brought those inhabitants increased civil freedoms and some political rights. In 1804, Livonian peasant law was introduced by the Imperial government, aimed at improving conditions for serfs. Serfdom was abolished in all Baltic provinces between 1816 and 1820, about half a century earlier than in Russia proper. For some time there was no outward tension between the German speakers and indigenous residents. If earlier any Latvian or Estonian who managed to rise above his class was expected to Germanize and to forget his roots, by the mid-19th century German urban classes began to feel increasing competition from the natives, who after the First Latvian National Awakening and Estonian national awakening produced their own middle class and moved to German and Jewish dominated towns and cities in increasing numbers. The Revolution of 1905 led to attacks against the Baltic German landowners, the burning of manors, and the torture and even killing of members of the nobility. During the 1905 Revolution groups of rebels burned over 400 manor houses and German owned buildings and killed 82 Germans. In response Cossack punitive expeditions aided by German nobles and officers burned down hundreds of farms, arrested and deported thousands and summarily executed at least 2,000 people. Reaction to 1905 Revolution included a scheme by Karl Baron von Manteuffel-Szoege and Silvio Broedrich-Kurmahlen to pacify the countryside by settling up to 20,000 ethnic German farmers, mostly from Volhynia, in Courland. World War I World War I brought the end of the alliance of the Baltic Germans and the Russian Tsarist government. German heritage made them seen as the enemy by Russians. They were also seen as traitors by the German Empire if they remained loyal to Russia. Their loyalty to the state was questioned and rumours of a German fifth column increased with the defeats of the Imperial army led by Baltic German general Paul von Rennenkampf. All German schools and societies were closed in the Estonian Governorate and Germans were ordered to leave