International journalists were freed from the Rixos Hotel on Wednesday after being held for five days by armed men loyal to Muammar Qaddafi.

The dozens of journalists were taken in Red Cross cars and vans to another Tripoli hotel, where they hugged friends and colleagues, many crying.

The International Committee of the Red Cross was talking to loyalist forces about the journalists' safety on Wednesday when they were suddenly informed that Qaddafi's men were ready to release them.

"We were able to gather everyone in four cars, no problem," said George Comninos, the Red Cross' head of delegation in Tripoli. "Of course, it was still a tense situation."

The journalists had been held at gunpoint by two nervous Kalashnikov-wielding guards who refused to give up their posts despite rebel victories elsewhere in the city.

More On This...

Earlier in the day, an Associated Press reporter who entered the hotel found the journalists wearing helmets and flak jackets, clustered on the second floor, where a guard said they weren't permitted to leave.

Other journalists showed up at the gate, including a group in a car decorated with a rebel flag, and were forced out of the car and into the hotel, where they joined the dozens who had been there for days.

Those who had been held captive inside the hotel described running battles in the area, and intermittent electricity.

They were sleeping huddled on the floor in one wing of the hotel to protect each other for fear of people being attacked in their rooms, their belongings packed in case of need for a sudden departure.

Several said the first days of their captivity featured some of the most frightening moments.

"We were in the dining room making a big pot of tea when a sniper put two rounds through the window," said Fox News videojournalist Paul Roubicek.

He said that at other times the captives couldn't go outside because snipers were shooting at them and at their satellite equipment on the roof.

CNN journalist Jomana Karadsheh said the captives were held by 15 armed men until Tuesday, when the numbers dwindled to two. Some of the journalists' captors held impromptu press conferences describing their plans for a massive final battle around the Rixos, she said.

"Once I got into the car I couldn't stop crying," she said.

Save for the two guards, all the hotel employees had fled and the journalists were cooking for themselves. One guard expressed surprise when told most of the city was in rebel hands. Parked in front of the hotel was the bus once used by government minders to ferry journalists around the city -- on its windshield was a huge poster of Qaddafi -- one of the only ones apparently left in the city.