Prague was founded in the later 9th century, and soon became the seat of Bohemian kings, some of whom ruled as emperors of the Holy Roman Empire. The city thrived under the rule of Charles IV, who ordered the building of the New Town in the 14th century - many of the city's most important attractions date back to that age. The city also went under Habsburg rule and became the capital of a province of the Austro-Hungarian Empire. In 1918, after World War I, the city became the capital of Czechoslovakia. After 1989 many foreigners, especially young people, moved to Prague. In 1992, its historic centre was inscribed on the UNESCO World Heritage List. In 1993, Czechoslovakia split into two countries and Prague became capital city of the new Czech Republic.