Italy–Libya relations are foreign relations between Italy and Libya. Italy has an embassy in Tripoli and a general consulate in Benghazi. Libya has an embassy in Rome and 2 general consulates (in Milan and Palermo).
While Libya was considered a pariah by much of the international community under the rule of Muammar Gaddafi, Italy maintained diplomatic relations with Libya and exported a significant quantity of its oil from the country. Relations between Italy and Libya warmed in the first decade of the 21st century, when they entered co-operative arrangements to deal with illegal immigration into Italy. Libya agreed to aggressively prevent migrants from sub-Saharan Africa from using the country as a transit route to Italy, in return for foreign aid and Italy's successful attempts to have the European Union lift its trade sanctions on Libya.
In 2009, Gaddafi visited Italy for the first time in his 40-year rule. However, when Gaddafi faced a civil war in 2011, Italy imposed a freeze on some Libyan assets linked to him and his family, pursuant to a United Nations-sponsored regime. Italy currently recognizes the National Transitional Council as the government of Libya.
On 26 September 2011, Italian energy company Eni announced it had restarted oil production in Libya for the first time since the start of the 2011 Libyan civil war. The quick return of Eni to Libyan oilfields reflected the positive relations between Rome and Tripoli under the NTC.