Latvia, as in the rest of the Russian empire, the situation of factory workers was grim. They worked on average 11 hours a day, 10 on Saturday, and this under harsh and unsafe conditions. Social agitation built up over the course of several years; when workers protested at the Winter Palace, police and Cossacks attacked the procession, killing or wounding hundreds. This event marked the start of the Revolution of 1905. When the revolution spread to Latvia, instead of frustration or class struggle, the adversary in Latvia was unambiguously the Baltic German elite: a separate social class of separate ethnicity speaking a separate language. Thus the 1905 revolution in Latvia was fundamentally different from that in the rest of Russia. Peasants of both Russian and Latvian ethnicity captured small towns and burned dozens of manors. The revolution in Latvia, however, did not agitate to separate from Russia, as nationalists continued to believe they needed the might of Imperial Russia to counter Baltic German dominance. At the conclusion of the 1905 Revolution, Nicholas II, through various concessions, including the establishment of the representative Duma, retained power. Although Russification as a policy was not withdrawn, the Baltic German elite once again found themselves in the Tsar's favor as his agent to maintain control. The Germans, assisted by regiments of the Russian Army, targeted Latvians in an attempt to counter nationalism. The Russian government, in re-allying itself with the ruling elite, sought to cement that relationship by encouraging Russian political leaders to ally themselves with the Germans against the Latvians. The sentiment of the Latvian Russian community, however, remained ambivalent. The majority were descendants from Old Believers who had fled to the Baltics to escape religious persecution – and still regarded the tsar with deep suspicion, if not as outright evil. They now tended to remain neutral in the confrontation between Baltic Germans and nationalist Latvians; but in doing so the active commonality of purpose between Latvian Russians, Latvians, and Latvian nationalists prior to the 1905 Revolution was dissolved. Latvian nationalism continued to be focused against the Baltic Germans, a position unchanged until the Revolution of 1917. In 1917, class consciousness had continued to develop and was particularly strong in heavily industrialized Riga, the second-largest port in Russia. The Latvian Riflemen were particularly active and instrumental, assisting in organizing urban workers and rural peasants, in confiscating estates, and in setting up soviets in