It was months of campaigning for Democrats David Martin and William Tong. Martin, a Board of Finance member, who ran for Mayor in 2009, and Tong, a state representative serving the 147th district.
Tong's supporters say they backed his vision for the City, Stamford 2020.
"We need someone that is going to come in with a plan and a vision and a goal too. So that's why I was supporting William," said Susana Vidan, a Democratic City Committee member who voted for Tong.
But in the end, Martin won the Democratic ticket in Tuesday's primary election, winning by about 300 votes.
About 27 percent of the City's registered Democrats turned out for the election.
At Bradford's Grill and Tavern, Tong thanked his wife and supporters, and announced he will endorse Martin.
"My highest priority is to support him. To make sure that we win this November, that David Martin be our next Mayor. Please give him a hearty round of applause," said Tong during his concession speech.
Mike Fedele released a statement, also congratulating Martin's victory. He said, "I have the experience and vision to lead Stamford to its very best days. The general election phase of the campaign begins tonight and I look forward to winning in November."
"This is going to be one heck of a campaign. Mike Fedele is a very very serious Republican candidate and [Martin's] going to need everyone in this room. So I encourage you to follow our lead in supporting him and being a part of his team," said Tong.
Tong says he will continue to working to move Stamford forward.
"We cannot stand still anymore," said Tong. "We have to get our momentum back in this city. And what we did in this race, and I'm proud to say we did this, we put foward a vision for this city."