إسبانيا هابسبورغ
By the 15th century Libya was a haven for pirates. Habsburg Spain occupied Tripoli in 1510. Because the Spaniards were concerned with controlling the port instead of administering a colony, Charles V took Tripoli and in 1528 gave it to the Knights of St John of Malta.