TRIPOLI (Reuters) - The Libyan army was deployed to Tripoli's main square on Friday to guard a pro-government rally and became involved in an uneasy standoff with anti-government gunmen.
The pro-government protesters were rallying against groups of gunmen who have taken control of two ministries in the capital.
"We are here to support the government and ask the prime minister to deploy the police and the army. We don't want the militias here any more," one protester said at the rally that had been organized through social networks.
Unarmed supporters of the militias clashed with the pro-government demonstrators, breaking their placards and pushing them to leave the main square - leaving just the gunmen and the soldiers.
Tensions have been high in the capital since militias stormed the Foreign Ministry, calling for a ban on officials who had worked for deposed leader Muammar Gaddafi holding senior positions in the new administration.
Armed militia in pick-up trucks mounted with anti-aircraft guns and rocket-launchers have been in control of the Foreign Ministry since Sunday, and on Tuesday also surrounded Libya's Justice Ministry.
The anti-government gunmen in the square parked their pick-ups, marked with spray paint to identify their towns, next to the soldiers, where they stood in separate groups.
Some had stuffed the barrels of their anti-aircraft guns with pink, red and white flowers in an attempt to defuse the tension with the military stationed at their side.
A Defence Ministry source said the order to deploy the military in the square and on the main road to the airport had come from the office of Prime Minister Ali Zeidan.
"We need to change the government," said one of the anti-government gunmen, who said he was working for a group from Misrata, which had parked a pick-up truck alongside one of the army's armored cars.
"We are here to show the world we are with the army. We are not anti-army, we are against the government."
The ban demanded by the militia could apply to several long-serving ministers, the congress chairman and the prime minister himself, depending on the wording adopted.
The cabinet and Libya's official armed forces are so weak that swathes of the oil-producing desert country remain outside central government control.
The militias who played a pivotal role in the revolt that toppled Gaddafi have never left the capital.
The Foreign Ministry and Justice Ministry remained in the control of militias on Friday, while other ministries and the state media have also been targeted over the course of the week.
(Editing by Alison Williams)