Results from Libya's first free nationwide election in half a century have placed a liberal alliance ahead of other parties, leaving Islamist parties far behind.
However, each side is trying to build a coalition with independents for control of the 200-member National Assembly.
The election commission said former interim Prime Minister Mahmoud Jibril's National Forces Alliance won 39 seats, or nearly half of those allocated for parties.
The Muslim Brotherhood's Justice and Construction party came in second with 17 seats. Smaller factions won the other 24 seats set aside for parties.
Commenting on the results, interim Libyan Prime Minster Abdurrahim el-Keib said it was "time for celebration".
"The Libyan people have done a tremendous job, they have proven that the Libyans have had so much energy that was not given a chance to be released, that this is a measure of how civilised the Libyans are," Mr al-Keib said.
The election is a major step for a country emerging from 42 years of Muammar Gaddafi’s one-man rule.
It also marks the end for the interim National Transitional Council, which has been running Libya with varying degrees of success since Gaddafi was overthrown and killed last year.
The balance of power lies with the 120 seats set aside for independent candidates, some of whom are likely affiliated unofficially with parties.
The National Assembly will be tasked with forming a new government to replace the NTC's cabinet.