Rebel fighters were already jubilant as they streamed Sunday toward what they seemed sure was the final battle to topple Muammar Gadhafi.
"Now we go to Tripoli to get him," said a fighter driving with five others in a pickup loaded with guns.
"Freedom, freedom," shouted others in overloaded cars.
Hundreds of local residents along the coastal strip lined the road to cheer on fighters battling from the west toward Gadhafi's last stronghold, the capital itself.
"Now Libya is free. God is great," said one resident, Ahmed, standing in front of his modest home near the front line as gunshots and blasts from rocket launchers rang out.
Thousands of rebels were just 25 km (15 miles) from the capital city, where an uprising by Gadhafi's opponents erupted late on Saturday, leading to hundreds of deaths.
Rebels have been trying to oust Gadhafi since an uprising began in February in Libya's east.
They beamed with confidence as they passed through al-Maya on foot or packed into Toyota pickups and trucks fitted with anti-aircraft guns. Many fired shots into the air.
But there was no sign that the coming battle would be easy. The fighting in Tripoli overnight on Saturday killed 376 on both sides and injured about 1,000 others, a Libyan government official told Reuters.
Gadhafi on Sunday vowed to stay in Tripoli "to the end" and called on his supporters around the country to take up arms and battle the rebel "rats".
On the road to Tripoli, three rebels rode in the back of an ambulance rushing towards the front. Others fired into the air shouting "God is great."
"Don't be afraid. Gadhafi is finished," a rebel armed with two guns who gave his name as Abdullah told civilians standing by the road.
"We are so happy, so happy," said Mohammed, who lives in the village, as he shook hands with rebels.
Rebels drew fire up the road, halting their forward progress. But within two minutes the advance continued, with some civilians joining the convoy along the way.
"We will win. Nothing can stop us. Gadhafi is finished," said one of the fighters, Muammer, carrying an ammunition belt filled with bullets.
In testament to a quick retreat, partly eaten lunches and ammunition lay on the floor of a small building that the rebels say had been occupied hours earlier by Gadhafi soldiers trying in vain to defend a nearby bridge.
On the other side of the road three rebels sat on a captured rocket launcher.
"Libya is free," other soldiers coming back from the front said. Over the course of an hour, the sounds of heavy weapons grew fainter in al-Maya as the front line inched toward Tripoli.
Want to enjoy 'Zen' reading - with no ads and just the article? Subscribe todaySubscribe now