The Libyan Civil War, also referred to as the Libyan Revolution, was a 2011 armed conflict in the North African country of Libya, fought between forces loyal to Colonel Muammar Gaddafi and those seeking to oust his government. The war was preceded by protests in Zawiya, 8 August 2009 and finally ignited by protests in Benghazi beginning on Tuesday, 15 February 2011, which led to clashes with security forces that fired on the crowd. The protests escalated into a rebellion that spread across the country, with the forces opposing Gaddafi establishing an interim governing body, the National Transitional Council.
The United Nations Security Council passed an initial resolution on 26 February, freezing the assets of Gaddafi and his inner circle and restricting their travel, and referred the matter to the International Criminal Court for investigation. In early March, Gaddafi's forces rallied, pushed eastwards and re-took several coastal cities before reaching Benghazi. A further UN resolution authorised member states to establish and enforce a no-fly zone over Libya, and to use "all necessary measures" to prevent attacks on civilians. The Gaddafi government then announced a ceasefire, but failed to uphold it, and accused rebels of violating the ceasefire when they continued to fight as well. Throughout the conflict, rebels rejected government offers of a ceasefire and efforts by the African Union to end the fighting because the plans set forth did not include the removal of Gaddafi.
In August, rebel forces launched an offensive on the government-held coast of Libya, taking back territory lost months before and ultimately capturing the capital city of Tripoli, while Gaddafi evaded capture and loyalists engaged in a rearguard campaign. On 16 September 2011, the National Transitional Council was recognised by the United Nations as the legal representative of Libya, replacing the Gaddafi government. Muammar Gaddafi remained at large until 20 October 2011, when he was captured and killed attempting to escape from Sirte. The National Transitional Council "declared the liberation of Libya" and the official end of the war on 23 October 2011.
In the aftermath of the civil war, a low-level insurgency by former Gaddafi loyalists continued. There have been various disagreements and strife between local militia and tribes, including fighting on 23 January 2012 in the former Gaddafi stronghold of Bani Walid, leading to an alternative town council being established and later recognized by the NTC. A much greater issue has been the role of militias which fought in the civil war and their role in the new Libya. Some have refused to disarm and cooperation with the NTC has been strained, leading to demonstrations against militias and government action to disband such groups or integrate them into the Libyan military. These unresolved issues led directly to the 2014 Libyan Civil War.