Crimea first came under Russian control in 1783 when the Crimean Khanate was annexed by the Russian Empire and this was formally recognised in 1792 when the peninsula was ceded to Russia by the Ottoman Empire under the Treaty of Jassy reaffirming the 1783 Russo-Turkish agreement on recognition of Crimea as a Russian territory. Thereafter, Russian rule in Crimea spanned a period of 171 years, punctuated by short periods during political upheavals and wars, which ended on 19 February 1954 when the Presidium of the Supreme Soviet issued a decree administratively transferring the Crimean Oblast from the Russian Soviet Federative Socialist Republic to the Ukrainian Soviet Socialist Republic, within the Soviet Union on the basis of "the integral character of the economy, the territorial proximity and the close economic and cultural ties between the Crimea Province and the Ukrainian SSR.":