After seizing power in 1969, he abolished the Libyan Constitution of 1951. He established laws based on the political ideology he had formulated, called the Third International Theory and published in The Green Book. After establishing the jamahiriya ("state of the masses") system in 1977, he officially stepped down from power and has since then held a largely symbolic role within the country's governance. Rising oil prices and extraction in Libya led to increasing revenues. By exporting as much oil per capita as Saudi Arabia and through various welfare programs, Libya achieved the highest living standards in Africa, though not as high as several similarly oil-rich Gulf countries. Gaddafi and his relatives have been accused of taking over much of the economy. Gaddafi started several wars and acquired chemical weapons. The United Nations called Libya under Gaddafi a pariah state. In the 1980s, countries around the world imposed sanctions against Gaddafi. Six days after the capture of Iraqi dictator Saddam Hussein in 2006 by United States troops, Gaddafi renounced Tripoli's weapons of mass destruction (WMD) programs and welcomed international inspections to verify that he would follow through on the commitment. A leading advocate for a United States of Africa, he served as Chairperson of the African Union (AU) from 2 February 2009 to 31 January 2010.
In February 2011, following revolutions in neighbouring Egypt and Tunisia, protests against Gaddafi's rule began. These escalated into an uprising that spread across the country, with the forces opposing Gaddafi establishing a government based in Benghazi named the National Transitional Council (NTC). This led to the 2011 Libyan Civil War, which included a military intervention by a NATO-led coalition to enforce a UN Security Council Resolution 1973 calling for a no-fly zone and protection of civilians in Libya. The assets of Gaddafi and his family were frozen, and both Interpol and the International Criminal Court issued arrest warrants on 27 June for Gaddafi, his son Saif al-Islam, and his brother-in-law Abdullah al-Senussi, concerning crimes against humanity. Gaddafi and his forces lost the Battle of Tripoli in August, and on 16 September 2011 the NTC took Libya's seat at the UN, replacing Gaddafi. He retained control over parts of Libya, most notably the city of Sirte, to which it was presumed that he had fled. Although Gaddafi's forces initially held out against the NTC's advances, Gaddafi was captured alive as Sirte fell to the rebel forces on Thursday the 20 October 2011, later he had been beaten and killed soon after.Muammar al-Gaddafi was raised in a bedouin tent in the desert near Sirte (Sidra). According to many biographies, his family belongs to a small tribe of Arabs, the Qadhadhfa. They are mostly herders that live in the Hun Oasis. According to Gaddafi, his paternal grandfather, Abdessalam Bouminyar, fought against the Italian occupation of Libya and died as the "first martyr in Khoms, in the first battle of 1911". Gaddafi attended a Muslim elementary school far from home in Sabha, during which time he was profoundly influenced by major events in the Arab world. He was passionate about the success of the Palestinians and was deeply disappointed by their defeat by Israeli forces in 1948. He admired Egyptian President Gamal Abdel Nasser and looked to him as a hero during his rise to power in 1952. In 1956 Gaddafi took part in anti-Israeli protests during the Suez Crisis. In Sabha he was briefly a member of Scouting. He finished his secondary school studies under a private tutor in Misrata, concentrating on the study of history. Gaddafi entered the Libyan military academy at Benghazi in 1961, and graduated in 1966. Both towards the end of his course and after graduation, Gaddafi pursued further studies in Europe. False rumours have been propagated with regards to this part of his life, for example, that he attended the United Kingdom's Royal Military Academy Sandhurst. He did in fact receive four months' further military training in the United Kingdom, and spent some time in London. After this, as a commissioned officer he joined the Signal Corps. Although often referred to as "Colonel Gaddafi", he was in fact only a Lieutenant when he seized power in 1969. He was, nonetheless, a holder of the honorary rank of Major General, conferred upon him in 1976 by the Arab Socialist Union's National Congress. Gaddafi accepted the honorary rank, but stated that he would continue to be known as "Colonel" and to wear the rank insignia of a Colonel when in uniform.