Libyan rebels have fought their way into the strategic city of Zawiya west of Tripoli on in their most significant advance in months, battling snipers on rooftops and heavy shelling from Muammar Gaddafi's forces holding the city.
Zawiya, 30 miles from the capital, is a key target for rebels waging a new offensive launched from the mountains in the far west of Libya, an attempt to break the deadlock in combat between the two sides that has held for months in the centre and east of the country.
A credible threat from the rebels in the west could strain Gaddafi's troops, which have been hammered for months by Nato airstrikes.
Defending Zawiya is key for the regime but could require bringing in better trained forces who are currently ensuring its hold over its Tripoli stronghold or fighting rebels on fronts further east.
A group of about 200 exuberant rebel fighters, advancing from the south, reached a bridge on Zawiya's south western outskirts yesterday, and some rebels pushed further into the city's central main square.
They tore down the green flag of Gaddafi's regime from a mosque minaret and put up two rebel flags. A reporter travelling with the rebels saw hundreds of residents rush into the streets, greeting the fighters piled into the backs of pickup trucks with chants of "God is great".
Gaddafi's forces then counterattacked with a barrage of heavy weapons, and the loud crackle of gunfire could be heard as rebels and government troops battled.
Regime snipers were firing down from rooftops on the rebels, said one resident, Abdel-Basset Abu Riyak, who joined to fight alongside the rebels when they entered the city.
He said Gaddafi's forces were holed up in several pockets in the city and that there were reports of reinforcements coming from Tripoli, though there was no sign of them yet.
Rebel spokesman Jumma Ibrahim claimed that the opposition's fighters controlled most of Zawiya by nightfall.
"What remains are few pockets (of Gaddafi forces) in the city," he said. "The road is now open all the way from the western mountains to Zawiya, we can send them supply and reinforcement anytime."
Perhaps more importantly, the rebels now control the main road linking Tripoli to the Tunisian border, according to Fadlallah Haroun, the head of the rebels' security council in Benghazi. The road passes through Zawiya.
Zawiya's residents rose up and threw off regime control when Libya's anti-Gaddafi revolt first began in February.
But Gaddafi's forces retaliated and crushed opposition in the city in a long and bloody siege in March.
Many of Zawiya's rebels fled into the mountains - and were among the lead forces advancing on the city - while others like Abu Riyak remained in the city, lying low.
Mr Abu Riyak said residents were now joining up with the rebels' assault, saying, "95 % of Zawiya's people are with the revolution".
"There is shooting from all sides," said another rebel, 23-year-old Ibrahim Akram. "The people joined us. Fierce clashes are still ongoing, but thank God our numbers are great."
But Gaddafi is likely to fight hard to keep control of Zawiya. The city of about 200,000 people on the Mediterranean coast is key because it controls the main supply road to the capital from the Tunisian border and is the site of the sole remaining oil refineries in the west still under the regime's control.
The state of government forces after months of punishing Nato airstrikes is not known.
The best armed and equipped units, led by Gaddafi's sons, have been involved in fighting at the main fronts - around the city of Misrata, east of Tripoli, and at the oil port of Brega in the centre of the country.
Government spokesman Moussa Ibrahim dismissed reports of rebel advance on Zawiya as a "media game", dismissing it as the act of "remnants of armed gangs".
He told state TV that "Tripoli is secure and safe. Even if there is advancement by the armed gangs, it's only temporary under the cover of Nato".
The rebel force has been advancing into the coastal plain for the past week from the Nafusa Mountains, an opposition stronghold about 60 miles to the south.
Commanders have said the plan is to seize Zawiya and other nearby towns and then move on Tripoli itself, Gaddafi's stronghold.
At the same time, rebels were attempting to seize control of another strategic town, Gharyan, south of Tripoli.
In the morning yesterday, rebels claimed control of Gharyan, saying they had moved into the centre of the town and that Gaddafi's troops had withdrawn.
But several hours later, regime forces returned with reinforcements and the two sides clashed, said rebel spokesman Gomma Ibrahim.
Gharyan lies at the northern end of the Nafusa Mountains, and Gaddafi's hold on the town had been a sticking point for rebels who have taken control of most of the range.
The town lies on the main road leading directly from Nafusa to Tripoli, 50 miles to the north on the coast.
South of Zawiya, rebels said a suspected Nato airstrike accidentally killed four opposition fighters in a tank captured from Gaddafi forces.