The history of rail transport in Turkey began with the start of the placement in 1856 of a 130 kilometres (81 mi) railway line between Izmir and Aydın. The first finished Ottoman railway line was a 66 kilometres (41 mi) line between Köstence (Constanţa, Romania today) and Boğazköy (Cernavodă, Romania today) built in 1859-1860.
The state corporation that manages the Turkish railway system, Turkish State Railways, subdivides the history into the Pre-Republic period (Ottoman period), the Republic period (which extends from 1923 to 1950) and the period after 1950. During the first period, railways were built and operated by foreign concerns with permission from the state. In the second, the state took over its own railways and expanded them in support of Turkish financial interests. In the third period, attention turned from rail travel to highways, and the expansion of railways dramatically slowed.
During the period of the Ottoman Empire British, French and German concerns funded and ran private railways in Turkey having gotten permits to do so from the state.
The first railway to be constructed in Turkey was the Izmir-Aydin line, the first part of which was opened in 1860. Further construction and extension of the line continued up to 1912, by which time the total length was in excess of 700 km.
The second railway to be opened was the Izmir-Turgutlu railway. As with the Izmir-Aydin line expansion continued for several decades, and by 1912 the total length was well in excess of 500 km.
In 1871 the Yenikapı to Florya section of the Sark railway opened, further lines were added in the years 1872 and 1873 to create 288 km of lines. A further extension was added in 1912 of 46 km.
The first section of the Anatolian railway (Anadolu demiryollari) opened in 1872, and the line saw constant growth through the next three decades.
The Mersin to Adana opened the section to Yenice in 1882, and was completed, having reached Adana by 1886.