Chechnya was first incorporated as a whole into the Russian Empire in 1859 after the decades-long Caucasian War. Tsarist rule was marked by a transition into modern times, including the formation (or re-formation) of a Chechen bourgeoisie, the emergence of social movements, reorientation of the Chechen economy towards oil, heavy ethnic discrimination at the expense of Chechens and others in favor of Russians and Kuban Cossacks, and a religious transition among the Chechens towards the Qadiri tariqa of Sufism.