Libya, officially the State of Libya, is a country in the Maghreb region of North Africa. It borders the Mediterranean Sea to the north, Egypt to the east, Sudan to the southeast, Chad to the south, Niger to the southwest, Algeria to the west, and Tunisia to the northwest. With an area of almost 1.8 million km (700,000 sq mi), Libya is the fourth-largest country in Africa and the Arab world, and the 16th-largest in the world. The country claims 32,000 square kilometres of southeastern Algeria, south of the Libyan town of Ghat. The capital and largest city is Tripoli, located in the northwest and contains over a million of Libya's 7 million people.
Libya has been inhabited by Berbers since the late Bronze Age as descendants from Iberomaurusian and Capsian cultures. In classical antiquity, the Phoenicians established city-states and trading posts in western Libya, while several Greek cities were established in the East. Parts of Libya were variously ruled by Carthaginians, Numidians, Persians, and Greeks before the entire region became a part of the Roman Empire. Libya was an early centre of Christianity. After the fall of the Western Roman Empire, the area of Libya was mostly occupied by the Vandals until the 7th century when invasions brought Islam to the region. From then on, centuries of Arab migration to the Maghreb shifted the demographic scope of Libya in favour of Arabs. In the 16th century, the Spanish Empire and the Knights Hospitaller occupied Tripoli until Ottoman rule began in 1551. Libya was involved in the Barbary Wars of the 18th and 19th centuries. Ottoman rule continued until the Italo-Turkish War in 1911, which resulted in Italy occupying Libya and establishing two colonies: Italian Tripolitania and Italian Cyrenaica, later unified in the Italian Libya colony from 1934 to 1943.