Rewrite the following sentence to use an active voice:

The school was visited by the mayor yesterday.
Yesterday, the mayor visited the school.
Complete the following task based on the instruction and optional input provided.### Instruction:
Rewrite the following sentence to use an active voice:

The school was visited by the mayor yesterday.

### Output:
Yesterday, the mayor visited the school.