Libya's new national assembly has elected former opposition leader Mohammed el-Megarif as its president.
Mr. Megarif received 113 votes from the 200-member Congress, defeating independent Ali Zidan, who won 85.
The vote late Thursday came just one day after Libya's transitional council handed power to the assembly, which was elected last month in the nation's first free election in 60 years.
Mr. Megarif was the leader of Libya's oldest opposition movement, the National Front for the Salvation of Libya, which tried several times to end the 42-year rule of late leader Moammar Gadhafi.
After living in exile since the 1980s, Mr. Megarif returned to Libya following the revolution last year that ousted Gadhafi.
Mr. Megarif, now head of the National Front party, will steer the nation to full parliamentary elections after a new constitution is drafted.