In many countries, a mayor is the highest-ranking official in a municipal government such as that of a city or a town. Worldwide, there is a wide variance in local laws and customs regarding the powers and responsibilities of a mayor as well as the means by which a mayor is elected or otherwise mandated. Depending on the system chosen, a mayor may be the chief executive officer of the municipal government, may simply chair a multi-member governing body with little or no independent power, or may play a solely ceremonial role. A mayor's duties and responsibilities may be to appoint and oversee municipal managers and employees, provide basic governmental services to constituents, and execute the laws and ordinances passed by a municipal governing body (or mandated by a state, territorial or national governing
body). Options for selection of a mayor include direct election by the public, or selection by an elected governing council or board.
The term mayor shares a linguistic origin with the military rank of Major, both ultimately derived from French majeur.
In modern England and Wales, the position of mayor descends from the feudal lord's bailiff or reeve (see borough). The chief magistrate of London bore the title of portreeve for considerably more than a century after the Norman Conquest. This official was elected by popular choice, a privilege secured from King John. By the beginning of the 12th century, the title of portreeve gave way to that of mayor as the designation of the chief officer of London, followed around 1190 by that of Winchester. Other boroughs adopted the title later.
In the 19th century, in the United Kingdom, the Municipal Corporations Act 1882, Section 15, regulated the election of mayors. The mayor was to be a fit person elected annually on 9 November by the council of the borough from among the aldermen or councilors or persons qualified to be such. His term of office was one year, but he was eligible for re-election. He might appoint a deputy to act during illness or absence, and such deputy must be either an alderman or councilor.