Correct Answer:
A. He was elected Mayor by the people.
The passive voice for "The people elected him Mayor" correctly transforms the object "him" into the subject "He" and uses the past simple passive form "was elected." Other options use incorrect tenses or subject-verb agreements.