 In 1885, Thompson entered federal politics at the personal request of Sir John A. Macdonald, becoming Minister of Justice.In that role he was the driving force behind the enactment of the Canadian Criminal Code.Thompson became prime minister in 1892, following the retirement of John Abbott.