Mahinda Rajapaksa has been declared the winner of Sri Lanka's first presidential election since Tamil Tiger rebels were defeated after 25 years of civil war.
With all votes counted, the election commission gave Mr Rajapaksa some six million votes (57%) compared to four million (40%) for his rival, Gen Sarath Fonseka. The general plans to challenge the result.
A presidential spokesman said Mr Rajapaksa was "very pleased". His supporters have been celebrating.
Gen Fonseka, seen here on voting day, says the result was rigged and alleges the government wants to kill him.
About 100 armed troops have surrounded the Colombo hotel where Gen Fonseka is staying.
A government spokesman said they did not intend to hold Gen Fonseka but were looking for army deserters. The troop presence has created a very tense atmosphere, correspondents say.
There were a number of bomb attacks on election day, including in the Vavuniya area, near camps for people displaced by the war. Election monitors said it was a systematic attempt to scare Tamil voters away.
What are these?