The Austro-Hungarian Compromise of 1867 created a real union, whereby the Kingdom of Hungary was granted co-equality with the Empire of Austria, that henceforth didn't include the Kingdom of Hungary as a crownland anymore. The Austrian and the Hungarian lands became independent entities enjoying equal status. Under this arrangement, the Hungarians referred to their ruler as king and never emperor (see k. u. k.). This prevailed until the Habsburgs' deposition from both Austria and Hungary in 1918 following defeat in World War I.