Why it's the capital
For centuries Ljubljana was the capital of Carniola, a historical land. Later it became the capital of the Socialist Republic of Slovenia inside Yugoslavia, and in 1991, when Slovenia became independent, it became the capital of the new state.