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