The mayoral campaign turned the two candidates, previously friends, against each other.