The Magistrate

The Magistrate was an incarnation of the Master in another universe who became the Magistrate of the Citadel on Gallifrey.

The Magistrate was the Doctor's oldest friend and went to the Academy with him. During his time at the Academy the Magistrate became the highest ranking lawman on Gallifrey. Following graduation from the Time Lord Academy, he pursued a career as Magistrate for the High Council. (PROSE: The Infinity Doctors)

Personality
When starting out as Magistrate, he had devotion to justice and discipline, but this caused an obsession with order and the Magistrate became a much darker person who enjoyed causing trouble for other Time Lords. (PROSE: The Infinity Doctors)