Results from Libya's first elections
after the overthrow of Col Gaddafi have shown gains for an alliance of parties
seen as broadly liberal.
The National Forces Alliance, led by interim Prime Minister Mahmoud Jibril, has won 39 out of the 80 seats reserved for political parties, local media say.
The Muslim Brotherhood's party has gained 17.
The 200-member National Assembly will also include dozens of independent candidates.
The overall orientation that the assembly will have is therefore unclear.
What remains to be seen is who, if anyone, will lead the assembly by majority, the BBC's Rana Jawad in Tripoli reports.
That will depend on the allegiances of 120 independent candidates, which are largely unknown, our correspondent adds.
There will now be a two-week window for any appeals against the tally.
More than 100 parties competed in the poll, many of them
formed only in recent months.
The assembly will have legislative powers and is expected to be in place for at least year.
It will choose the first elected government since Col Gaddafi came to power in 1969.
The last fully free parliamentary election was held soon after independence in 1952. The last national vote was held in 1965, when no political parties were allowed.
EU election observers said the voting process on 7 July was largely "peaceful and smooth", although technical delays and violence disrupted polling in several locations.
One person was killed in a shooting near a polling station in Ajdabiya.
The election commission put turnout at 62% of registered voters.
In an interview with the BBC last week Mr Jibril called on parties to form a coalition government, something which rival politicians tentatively welcomed.
Are you in Libya? What do you think of the election
results? Share your comments and experiences.