Tunisia on Monday installed as its new president a former dissident who was imprisoned and then exiled for opposing former President Zine al-Abidine Ben Ali, a new landmark in the country's post-revolutionary transition to democracy.
Members of the constitutional assembly, Tunisia's interim parliament, voted to elect Moncef Marzouki as president, the second most powerful role after the prime minister.
Marzouki, 66, is respected by many Tunisians for his implacable opposition to the autocratic Ben Ali. As president, he will be a secularist counterweight to the moderate Islamist party which is now Tunisia's dominant political force.
Tunisia became the birth-place of the "Arab Spring" uprisings in January when protests forced Ben Ali, in power for more than 23 years, to flee to Saudi Arabia.
That inspired revolutions in Egypt and Libya, as well as unrest in other Middle Eastern states.
"I promise the Tunisian people that I will work for the country with all my strength," Marzouki said after the vote. "I represent a country, a people, a revolution. Long live Tunisia."
"I say to those members who gave me their votes, thank your for your trust, and for those who did not vote for me, your message has been received .. I know that you are going to hold me to account," Marzouki said.
He was elected with 153 of the 202 votes cast. No other candidates were put forward. Marzouki will serve for a year until the constitution is re-written and new elections are held.
A doctor and human rights campaigner, Marzouki was jailed in 1994 after challenging Ben Ali in a presidential election.
He was released four months later when his case became the focus of an international campaign, but was forced to go into exile in France.
Marzouki returned home three years before the revolution but left again about two months later, saying he could not operate because of harassment by the authorities. At that time, hundreds of plainclothes police officers surrounded his home and office around the clock and followed him to meetings.
Days after protests forced Ben Ali to flee on 14 January, Marzouki flew home from Paris and was greeting at Tunis-Carthage airport by cheering and singing followers.
Marzouki was elected as part of a power-sharing deal between the moderate Islamist Ennahda party and its two smaller secularist coalition partners, Ettakatol and Marzouki's Congress for the Republic.
Under the arrangement, Ennahda's secretary-general Hamadi Jbeli will hold the most powerful position, of prime minister, while Ettakatol leader Mustafa Ben Jaafar becomes speaker of the constitutional assembly.
The deal gives the president limited powers. He sets Tunisia's foreign policy in consultation with the prime minister. He is also commander-in-chief of the armed forces but can only appoint or fire senior officers in consultation with the prime minister.