People have lived here since the Neolithic age. The Celts inhabited this area from 400 BC-50 BC. The Roman Empire set up border military camps near Bratislava from the 1st century until the 5th century, for example ""Gerulata"". The Slavs started moving here from the 6th century. Bratislava was part of the Slavic empire called Great Moravia in the 9th century. From the second half of the 10th century until 1918, it was part of the Kingdom of Hungary, with some exceptions. It was even capital of the Kingdom between 1524 and 1830/1848. After the World War I ended in 1918, it was part of newly founded Czechoslovakia until 1939, when it became capital of World War II Slovak Republic until 1945. After 1945, it was part of Czechoslovakia again, becoming capital of Slovak Socialist Republic (which was still part of Czechoslovakia) in 1968. After the event called Velvet Divorce, when the Czechoslovakia broke up, Bratislava became capital of Slovakia.