The short answer
Yes. In 2008 Italy formally apologized to Libya for its colonial rule. The apology was part of a friendship treaty signed in Benghazi, under which Italy agreed to invest about $5 billion in Libya over 25 years.
Italian rule in Libya
Italy invaded the Ottoman provinces of Tripolitania and Cyrenaica in 1911 and held Libya as a colony until the Second World War. Italian rule was harsh, especially in Cyrenaica in the late 1920s and early 1930s. Italian forces fought a long campaign against local resistance there, and the resistance leader Omar Mukhtar was captured and hanged in 1931.
During the campaign, many rural Libyans were moved into camps. Historians estimate that tens of thousands died in these camps, though estimates vary widely.
The 2008 treaty
The Treaty of Friendship, Partnership and Cooperation was signed on 30 August 2008 in Benghazi by Italy’s prime minister, Silvio Berlusconi, and Libya’s leader, Muammar Gaddafi. In it, Italy apologized for the suffering caused by its colonial rule.
The treaty also set out the investment. Italy agreed to about $5 billion over 25 years, mostly in infrastructure projects. The best-known of these was a coastal highway across Libya. The money was framed as investment in Libya, not as direct payments to individuals.
Was it enough?
Both governments presented the agreement as a new start, but it has been debated since. Critics have argued that the payments were only a partial response to the losses of the colonial period.
The treaty’s future was also uncertain after the 2011 uprising and the fall of the Gaddafi government. Readers who want to know what happened to the country after the war can find more in what happened to Libya after WWII.
How it compares
Apologies for wartime or colonial wrongs are often compared across countries. Readers who ask has Germany apologized for World War 2 will find that the question of formal apologies comes up in many countries’ histories, not just Italy’s.
Italy’s place in the war also matters here. Italy fought as an Axis power, and it switched sides in September 1943, when it signed an armistice with the Allies. That is why Italy is often the first answer to which countries switched sides in WWII. For a wider view of the alliance structure, see who were the allied and axis powers in World War II.