The history of rail transport in Poland dates back to the first half of the 19th century when railways were built under Prussian, Russian, and Austrian rule. Of course, "divided Poland" in the 19th century was the territory of the former Polish–Lithuanian Commonwealth and not that one of today's Republic of Poland. After Polish independence was declared on 11 November 1918, the independent Polish state administered its own railways until control was surrendered to German and Soviet occupiers during World War II.