Representative image: National Transitional Council (NTC) fighters take part in a street battle in the centre of the city on October 14, 2011 in Sirte, Libya. Photograph: (Getty)
Officials said the United States would continue to strike Islamic State jihadists if the Libyan unity government asked for help in doing so
The US military has officially ended operations in a former Islamic State bastion in Libya, officials have announced.
The Pentagon had launched Operation Odyssey Lightning to help local forces push the jihadists from the coastal city of Sirte on August 1.
"In partnership with the Libyan Government of National Accord, the operation succeeded in its core objective of enabling GNA-aligned forces to drive Daesh (IS) out of Sirte," the US military's Africa Command said in a statement.
US drones, gunships and warplanes had hammered IS positions, conducting a total of 495 strikes.
"We are proud to have supported this campaign to eliminate ISIL's hold over the only city it has controlled outside Iraq and Syria," Pentagon press secretary Peter Cook told reporters, using an IS acronym.
Officials said the United States would continue to strike IS jihadists if the Libyan unity government asked for help in doing so.
Unity government leader Fayez al-Sarraj on Saturday announced that military operations in Sirte were done, but IS still has fighters in Libya and on Sunday conducted a suicide attack in Benghazi.
The fall of Sirte -- Kadhafi's home town located 450 kilometres east of Tripoli -- is a major setback for IS, which has also faced military defeats in Syria and Iraq.
Libya descended into chaos following the NATO-backed ousting of longtime dictator Moamer Kadhafi in 2011, with rival administrations emerging and well-armed militias vying for control of its vast oil wealth.