TOBRUK, Libya (AP) -- Opponents of Islamists dominated the key inaugural session of Libya's new parliament on Monday, underscoring the decisive defeat suffered in recent elections by factions of political Islam who previously led a majority.
In the weeks leading up the session, Islamic militias - armed wings of Islamic factions and cities' allied to them like Misrata - launched a violent offensive, battling with rivals in the capital Tripoli and overwhelming much of the country's second largest city, Benghazi. Opponents accuse Islamists of pushing the country closer to a civil war to make up for their election losses. Islamists say they are battling remnants of the old regime of longtime dictator Moammar Gadhafi.
"They lost their minds after the popular rejection was huge in polls," said independent lawmaker Faraj Najim, in charge of a logistical committee in the new parliament. "But the bottom line is: this is not about ideology. It's a fight over the cake, over power."
Since Gadhafi's downfall and killing in a 2011 uprising, the nature of the struggle in Libya took on several layers, where cities, ideologies and tribes are all intertwined.
Libya's army and police have been left shattered, and instead of dismantling the militias, successive interim governments have depended on them for restoring order temporarily. But government funding to the groups only boosted their numbers and power. When the first post-war parliament was elected in 2012, politicians began using militias to pressure it to pass laws they favored.
Armed groups that originated from the coastal city of Misrata allied with Islamic political factions, creating a formidable alliance that controlled a strong force on the ground - the very fighters that launched a wide offensive in the capital as Islamists lost heavily in the last election.
Other armed groups like those originally from the mountain town of Zintan allied with a non-Islamist political grouping headed at one point by liberal-minded former premier Mahmoud Jibril. These militias, known as QaaQaa and Sawaq, have controlled the airport ever since Gadhafi's overthrow, becoming a center of power in the capital.
Meanwhile, in Benghazi, Islamic militias including extremist ones like Ansar al-Shariah have been accused of carrying out a wave of assassinations, kidnappings and bombings of army troops. Residents have staged dozens of demonstrations demanding the militias' dismantlement.
The uneasy balance of power in the capital, and the stalemate in Benghazi crumbled when renegade general Khalifa Hifter announced a campaign in May to rid the country of Islamist militias and parties, in an open offensive where allied forces launched airstrikes against the militias' compounds. The election results appeared to have tipped the balance for good.
Islamic militias and their allied factions reacted by launching their own offensives, one on the Tripoli airport and another to take Benghazi.
Weekslong battles left the country's main airport largely destroyed; volleys of shells and Grad rockets hit eight oil depots filled with millions of liters of fuel, setting them ablaze and leaving columns of black smoke in the sky. Shells hit residential areas, displacing thousands of families who were already struggling with a fuel and food shortage. Diplomats, foreigners and Libyans fled the country, with tens of thousands crossing overland into Tunisia because of airport closures. More than 230 people have been killed and nearly 1,000 injured. Late Monday, Libya's official news agency announced that Egypt sealed off its border crossing with Libya. Egypt, which shares a long stretch of borderline with Libya, expressed concerns that the unrest in Libya poses danger to its national security.
Ansar al-Shariah, the group Washington considers a terrorist organization and accuses of orchestrating a 2012 assault that killed four Americans including the U.S. ambassador, participated in the Benghazi offensive. In two weeks' time, the militias swept into city, blowing up the security headquarters, taking over main buildings and checkpoints and squeezing Hifter's forces out into eastern and southern districts. The Red Crescent has retrieved dozens of bodies buried under the rubble of the main army barracks.
Though the winners of the June election were known, the extent of the Islamists' setback had been unclear until now, since lawmakers ran as independents and their party affiliations were not known. Monday's opening session showed just how much they had lost.
Because of the violence in Tripoli and Benghazi, the session was held in the eastern city of Tobruk, an anti-Islamist stronghold and militia-free zone.
The mere fact that the parliament was unable to convene in Benghazi, "shows the challenges facing Libya by ongoing fighting between armed groups and extremist ones," said Hesham Youssef, speaking to the deputies as a representative of the Organization of Islamic Cooperation.