Libya has been inhabited by Berbers since the late Bronze Age as descendants from Iberomaurusian and Capsian cultures. The Phoenicians established trading posts in western Libya and ancient Greek colonists established city-states in eastern Libya. Parts of Libya were variously ruled by Carthaginians, Persians, Egyptians and Greeks before the entire region becoming a part of the Roman Empire. Libya was an early center 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. In the 16th century, the Spanish Empire and the Knights of St John 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 which resulted in the Italian occupation of Libya and the establishment of two colonies, Italian Tripolitania and Italian Cyrenaica (1911–1934), later unified in the Italian Libya colony from 1934 to 1947.