Libya's new authorities announced the capture of Bani Walid, the former stronghold of Muammar Gaddafi, on Wednesday.
The authorities state that all military operations have now ceased, and the troops will now be providing security and aid.
The announcement came after fighting that has forced hundreds of to flee into neigbouring towns.
However, according to the BBC, some of its correspondents have said that 'pockets of resistance' continue.