The first inhabitants of Libya were Berber tribes. In the 7th century B.C. , Phoenicians colonized the eastern section of Libya, called Cyrenaica, and Greeks colonized the western portion, called Tripolitania. Tripolitania was for a time under Carthaginian control. It became part of the Roman Empire from 46 B.C. to A.D. 436, after which it was sacked by the Vandals. Cyrenaica belonged to the Roman Empire from the 1st century B.C. until its decline, after which it was invaded by Arab forces in 642. Beginning in the 16th century, both Tripolitania and Cyrenaica nominally became part of the Ottoman Empire.

Tripolitania was one of the outposts for the Barbary pirates who raided Mediterranean merchant ships or required them to pay tribute. In 1801, the pasha of Tripoli raised the price of tribute, which led to the Tripolitan war with the United States. When the peace treaty was signed on June 4, 1805, U.S. ships no longer had to pay tribute to Tripoli.

Following the outbreak of hostilities between Italy and Turkey in 1911, Italian troops occupied Tripoli. Libyans continued to fight the Italians until 1914, by which time Italy controlled most of the land. Italy formally united Tripolitania and Cyrenaica in 1934 as the colony of Libya.

Libya was the scene of much desert fighting during World War II. After the fall of Tripoli on Jan. 23, 1943, it came under Allied administration.

On 21 November 1949 the UN General Assembly passed a resolution stating that Libya should become independent before 1 January 1952. Idris represented Libya in the subsequent UN negotiations. When Libya declared its independence on 24 December 1951 it was the first country to achieve independence through the United Nations and one of the first former European possessions in Africa to gain independence. Libya was proclaimed a constitutional and a hereditary monarchy and Idris was proclaimed king.

The discovery of significant oil reserves in 1959 and the subsequent income from petroleum sales enabled what had been one of the world's poorest countries to become extremely wealthy. Although oil drastically improved Libya's finances, popular resentment grew as wealth was increasingly concentrated in the hands of the elite.

On 1 September 1969 a small group of military officers led by then 28-year-old army officer Mu'ammar Abu Minyar al-Qadhafi staged a coup d'état against King Idris, who was exiled to Egypt. The new regime, headed by the Revolutionary Command Council (RCC), abolished the monarchy and proclaimed the new Libyan Arab Republic.

On the 17 Feb. 2011 the Libyan people upraised against the dictator ship regime and wide public revolution took place all over Libya which led to the end of 42 dark years of Libyan history, now a new democratic Libya has emerged and a bright future ahead for Libyan has began.