The Libyan government has regained control of its Interior Ministry building in Tripoli from an armed group that had stormed its offices and forced its closure in early July, according to a report by Reuters.

Local officials said the attack was carried out by militants from the western city of Zintan. Rebels from the city first entered Tripoli about two years ago and played a key role in helping to drive out forces loyal to former dictator Muammar Gaddafi from the capital.

Since their arrival in the capital some of the rebels have stayed on and caused disruptions such as occupying former military bases and other state institutions.