Definitions of mayoralty
the position of mayor (=the most important official in a town or city)
Bill Bestwick has said that he will not seek the Nanaimo mayoralty.
the time during which a person serves as mayor (=the most important official in a town or city)
The winning candidate will serve a 2-year mayoralty.