The Socialist Federal Republic of Yugoslavia collapsed in the 1990s, when its six socialist republics broke apart to become separate countries; though Slovenia seceded peacefully, civil wars broke out in Croatia, Bosnia and Kosovo, then part of Serbia. Ethnic cleansing and genocide erupted, including the Srebrenica massacre and Bosnian genocide.