The Kingdom of Yugoslavia was defeated and occupied on 17 April 1941 after the German invasion. The monarchy was formally abolished on 29 November 1945.