The Board of Elections said Green, the city's public advocate, beat Bronx Borough President Fernando Ferrer 402,706 votes to 384,136 votes in an Oct. 11 runoff election.
Green will face Republican Michael Bloomberg in the Nov. 6 general election to choose a successor to Mayor Rudolph Giuliani, who is prevented by term limits from running again.
There remains the technicality of the Board of Elections certification of the numbers, but the outcome is hardly in doubt: the board has already ordered that voting machines have Green's name on the Democratic line.
Ferrer conceded on the night of the runoff. But when the Board of Elections tallied the votes and Green's lead narrowed, Ferrer said it wasn't clear who had won. On Friday, he endorsed Green to create a unified Democratic front.
The campaign between Ferrer and Green became testy in its final days as Ferrer and his supporters were angered by some of Green's campaign tactics.
Green's camp ran a television ad asking if voters could trust Ferrer, and Green criticized Ferrer's campaign as divisive. Ferrer's campaign had suggested that poor residents of the city had been forgotten by city leaders.
©MMI The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed