TRIPOLI, March 18 (Xinhua) -- Thousands of residents of the Libyan capital Tripoli protested on Friday against militias in the city, local media reported on Saturday.

The demonstrations took place in central Tripoli with people from all walks of life expressing rejection against the militias controlling the city.

Protesters demanded "the rule of law" and "deployment of police and army forces," Gun firing was heard during the protest, with no injuries.

Tripoli has recently been witnessing violent clashes between rival militias.

The fighting took place in many areas in Tripoli. Heavy gunfire and explosions could be heard in the city, while roads in downtown Tripoli were closed, witnesses confirmed.

The fighting erupted a few days ago between two militias loyal to the two rival governments in Tripoli: the UN-backed government of national accord and the deposed government of national salvation that is attempting to take over the city and get back to power.

Libya has been suffering escalating violence and chaos since the fall of Muammar Gaddafi's regime in 2011. The country is plagued with insecurity and violence as well as political division.