The region that formed the TDFR had been part of the Russian Empire. As the empire dissolved during the 1917 February Revolution and a provisional government took over, a similar body, called the Special Transcaucasian Committee (Ozakom), did the same in the Caucasus. After the October Revolution and rise of the Bolsheviks in Russia, the Transcaucasian Commissariat replaced the Ozakom. In March 1918, as the First World War continued, the Commissariat initiated peace talks with the Ottoman Empire, which had invaded the region, but that broke down quickly as the Ottomans refused to accept the authority of the Commissariat. The Treaty of Brest-Litovsk, which ended Russia's involvement in the war, conceded parts of the Transcaucasus to the Ottoman Empire, which pursued its invasion to take control of the territory. Faced with this imminent threat, on 22 April 1918 the Commissariat dissolved itself and established the TDFR as an independent state. A legislature, the Seim, was formed to direct negotiations with the Ottoman Empire, which had immediately recognized the state.