In the 1990s, the transition of the regions' ex-Eastern bloc countries towards democratic free-market societies went peacefully. While in the non-aligned Yugoslavia, Wars between the former Yugoslav republics broke out after Slovenia and Croatia held free elections and their people voted for independence on their respective countries' referenda. Serbia, in turn, declared the dissolution of the union as unconstitutional and the Yugoslavian army unsuccessfully tried to maintain the status quo. Slovenia and Croatia declared independence on 25 June 1991, followed by the Ten-Day War in Slovenia. Till October 1991, the Army withdrew from Slovenia, and in Croatia, the Croatian War of Independence would continue until 1995. In the ensuing 10 years armed confrontation, gradually all the other Republics declared independence, with Bosnia being the most affected by the fighting. The long-lasting wars resulted in a United Nations intervention and NATO ground and air forces took action against Serb forces in Bosnia and Herzegovina and Serbia.