From Gadaffi to the Brotherhood. Out of the frying pan and into the fire.
While the elections for a 200-member National Congress is unlikely to grant a majority to any one faction, the Muslim Brotherhood and its Islamist allies are confident they can join their counterparts in Tunisia and Egypt at the helm of leadership.
Negotiations between the Muslim Brotherhood and a secular-based political movement led by former interim prime minister Mahmoud Jibril have focused on forming a post-election government as soon as the result is known.
An adviser to Mr Jibril said the former prime minister was likely to take the post of figurehead president with Mustafa Abu Shagour, currently interim deputy prime minister of the Muslim Brotherhood, taking the prime minister's slot as head of government.
The Muslim Brotherhood would dominate the ministries.
In the run-up to the elections, Libya's interim government has struggled to maintain law and order.
A threatened electoral boycott by federalists in Benghazi, the second city, has rattled Libya's rebels turned leaders. Leading figures fear that large numbers in the city that triggered the rebellion against Muammar Gaddafi may shun the polls, undermining the legitimacy of the election.
Recent attacks on foreign diplomats in Benghazi by Jihadists, a series of ugly micro-conflicts between militias in the Nafousa mountains leaving 105 dead and 300 wounded in the last fortnight and fierce clashes between Arabs, Tebu tribesmen and Tuaregs in the south have put the country on edge.
Since the Obama administration and most of Europe has embraced the Brotherhood as "moderate Islamists," they are no doubt celebrating this wretched deal in Washington and elsewhere. They will rue the day. One suspects that as long as the Brotherhood is selling Libyan oil to the right people, they will be forgiven much.