He was forced to step down amidst sexual misconduct allegations.

BRAMPTON, Ont. — Months after sexual misconduct allegations forced him to step down as leader of Ontario's Progressive Conservatives, Patrick Brown has made a political comeback — this time as a city mayor.

The embattled politician has defeated Brampton Mayor Linda Jeffrey, a former provincial Liberal cabinet minister who was backed by several high-profile politicians, including some of Brown's former colleagues.

"I've got so much hope in my heart for what's ahead for Brampton. You know why? I know we can turn this around, I know Brampton is going to be back, Brampton is going to become an economic engine,'' Brown told a cheering crowd.

Jeffrey, who called Brown a political opportunist during the campaign, appeared shocked at her loss.

"Tonight's results were not what, I think, any of us expected. We fought a hard and challenging race,'' she said in her concession speech. "I can confidently say that our city is in better shape than when I found it.''

The municipal election in the city northwest of Toronto was Brown's latest attempt at resurrecting his political career after his dramatic resignation in January amid allegations he has vehemently denied.

As the party sought to choose his successor, Brown threw his hat in the ring, only to withdraw before the vote. Doug Ford, who became Progressive Conservative leader after a turbulent party convention, took the Tories to a majority win in the spring provincial election.

Brown then ran a short-lived campaign to become chair of Peel Region, an elected position that Ford abruptly turned into an appointed role just three months shy of Monday's municipal election.'

More from HuffPost Canada:

The 40-year-old politician has also taken legal steps in an effort to move past the scandal that erupted when CTV News reported the allegations made by two women. The former Tory leader is suing CTV News for defamation, although the broadcaster has said it stands by its reporting and will defend itself in court.

Brown is also writing a tell-all book about what he has described as his "political assassination.''

But his days at the provincial legislature remain under scrutiny, and a government document leaked to the media just days before Monday's vote has drawn criticism about his spending.

The document showed Brown spent nearly $300,000 on support staff and office operations after resigning as leader and being turfed from Tory caucus, though he defended the move in a statement, saying the expenses were in line with legislative rules and involved severance payments to staff.

Brown — who represented residents of Barrie, Ont., municipally and federally before becoming a provincial legislator for an area north of the city — recently moved to Brampton with his new wife.