User blog comment:MarvelFan2012/Questions and Answers about Spider-Man/@comment-5354189-20120803090356/@comment-5111260-20120803220558

He became the mayor in Amazing Spider-Man #591. Though it doesn't really say how he got elected.