As Joseph Arpaio's federal case headed towards trial this year, US President Donald Trump wanted to act to help the former Arizona county sheriff who had become a campaign-trail companion and a partner in their crusade against illegal immigration.
The President asked Attorney-General Jeff Sessions whether it would be possible for the government to drop the criminal case against Arpaio, but was advised that would be inappropriate, according to three people with knowledge of the conversation. After talking to Sessions, Trump decided to let the case go to trial, and if Arpaio was convicted, he could grant clemency.
So the President waited, all the while planning to issue a pardon if Arpaio was found in contempt of court for defying a federal judge's order to stop detaining people merely because he suspected them of being undocumented immigrants. Trump was, in the words of one associate, "gung-ho about it".
"We knew the president wanted to do this for some time now and had worked to prepare for whenever the moment may come," said one White House official.
Trump's decision to issue his first pardon for Arpaio was the culmination of a five-year political friendship with roots in the "birther" movement to undermine President Barack Obama. In an extraordinary exercise of presidential power, Trump bypassed the traditional review process to ensure that Arpaio would face no time in prison.