As rebels in Tripoli celebrated on Monday morning, the BBC's Matthew Price said fighting was still taking place.
Heavy fighting is taking place in Tripoli around the compound of embattled Libyan leader Col Muammar Gaddafi after rebels seized control of much of the city on Sunday.
Throughout the night, jubilant crowds remained in central Green Square, previously the scene of nightly pro-Gaddafi demonstrations.
Rebels met little resistance as they swept in from east, south and west.
A rebel spokesman says pro-Gaddafi forces still control 15-20% of Tripoli.
There is no word of Col Gaddafi's whereabouts, but the rebels claim to have captured his son Saif al-Islam.
Tanks emerged from Col Gaddafi's Bab al-Azizia compound early on Monday morning and began firing, a rebel spokesman said.
Sustained gunfire has been heard in the area.
Western leaders have welcomed the rebel advance and urged Col Gaddafi to go.
China has said it will co-operate with whatever government the Libyan people choose.
-Flags torn down
The BBC's Tripoli correspondent, Rana Jawad, who has been unable to report openly since March, says people in her neighbourhood in eastern Tripoli were woken by the imam at the local mosque singing the national anthem of the pre-Gaddafi monarchy.
There is very much a sense that the end is near and the rebels have achieved what they wanted, our correspondent says.
http://www.bbc.co.uk/news/world-africa-14611549
Note: Update Record,22 August 2011 Last updated at 12:08 GMT