Libya's parliament on Sunday passed a law that bars officials who served in the regime of slain leader Moamer Gaddafi from holding office, dpa reported.
The National Congress adopted the Political Isolation Law after days of protests by militias who took part in a 2011 armed revolt that ousted Gaddafi.
Armed groups besieged government buildings, including the foreign and justice ministries, and demanded the removal of officials with ties to Gaddafi's 42-year-old regime.
The new law is to take effect next month.
Libya's new rulers have been struggling to assert their authority and re-establish security in the North African country since Gaddafi's overthrow.