WASHINGTON -- Deputy Attorney General Rod Rosenstein submitted his resignation Monday after a two-year run defined by his appointment of a special counsel to investigate connections between President Donald Trump's campaign and Russia.
His last day will be May 11, ending a tumultuous relationship with Trump and a tenure that involved some of the most consequential, even chaotic, moments of the president's administration.
When Trump wanted to fire then-FBI Director James Comey, who was overseeing the Russia probe, Rosenstein wrote the memo that the White House used to justify the dismissal. But eight days later, Rosenstein took a step that Trump feared would end his presidency: appointing Robert Mueller as special counsel. The move made Rosenstein the frequent target of Republican wrath and angry Trump tweets and left him repeatedly appearing on the verge of being fired.
Yet in the end, he was largely in Trump's corner.
He joined Attorney General William Barr in determining that Trump had not obstructed the Mueller investigation - reaching a conclusion that Mueller himself pointedly did not make. He defended Barr against criticism that he was spinning Mueller's findings in the president's favor and stood silently behind him as Barr praised Trump's cooperation at a news conference before a redacted version of the report was released.
In his resignation letter to Trump, Rosenstein paid tribute to the Justice Department's accomplishments and to Trump himself, even praising the sense of humor of a man who once retweeted an image that showed Rosenstein and other officials jailed for treason.
"I am grateful to you for the opportunity to serve; for the courtesy and humor you often display in our personal conversations; and for the goals you set in your inaugural address: patriotism, unity, safety, education, and prosperity, because 'a nation exists to serve its citizens,'" Rosenstein wrote to Trump.
Rosenstein's departure had been expected following the confirmation of William Barr as attorney general. The White House nominated a replacement for the No. 2 slot, Deputy Transportation Secretary Jeffrey Rosen, weeks ago.
In his resignation letter, Rosenstein said most deputies stay in their post for about 16 months; Rosenstein will have served about two years.
Rosenstein intended to leave around mid-March but stayed on for the completion of Mueller's investigation. His exit will leave the department without the Justice Department leader most closely aligned with the probe as officials grapple with continued public and congressional scrutiny of the special counsel's findings and the department's handling of the report.
Rosenstein was part of a small group of department officials who reviewed the document and helped shape its public release after Mueller submitted the document last month.
Integral to the start of the probe, Rosenstein was also present for the very end. After Mueller didn't reach a conclusion on whether Trump had obstructed the investigation, Barr and the deputy stepped in and determined the evidence wasn't enough to support such an allegation.
The deputy attorney general position is a hugely significant job, responsible for overseeing the daily operations of the Justice Department and the work of United States attorneys across the country. But it's largely an anonymous, behind-the-scenes position. Rosenstein even joked about telling one of his daughters not to expect to see his picture in the newspapers.
That wasn't the case, though, for Rosenstein, who was thrust into Justice Department drama even before his arrival on the job because of Attorney General Jeff Sessions' earlier recusal from the Russia probe.
Rosenstein's May 2017 memo criticizing Comey's handling of the Hillary Clinton email investigation laid the groundwork for the FBI chief's firing, though Rosenstein privately made clear that he was unhappy that the White House was publicly characterizing the move as his idea instead of Trump's, according to Mueller's report.
Trump later said he would have fired Comey even without the Justice Department's recommendation and said he was thinking of "this Russia thing."
Rosenstein appointed Mueller one week later, supervising his work and defending the investigation against attacks from congressional Republicans and Trump, who repeatedly blasted the probe as a "witch hunt."
Over the next two years, with Sessions recused from the Russia investigation because of his work on the Trump campaign, Rosenstein set the boundaries of Mueller's investigation, approved investigative steps and, in place of the rarely seen special counsel, twice announced criminal indictments from the Justice Department podium against Russians accused of election interference.
The investigation overshadowed the rest of Rosenstein's work even as he promoted the president's agenda, including announcements on combating violent crime and opioid addiction.
"The Department of Justice made rapid progress in achieving the Administration's law enforcement priorities - reducing violent crime, curtailing opioid abuse, protecting consumers, improving immigration enforcement, and building confidence in the police - while preserving national security and strengthening federal efforts in other areas," Rosenstein wrote in his resignation letter.
Though Rosenstein's exit was orderly, and he endured in the job well beyond Sessions, his relationship with the president waffled over time and often appeared in the balance.
That was especially true last September after The New York Times reported that he had discussed secretly recording Trump and invoking a constitutional amendment to remove him from office.
The Justice Department issued statements challenging the reporting, but former FBI Deputy Director Andrew McCabe - who was in the room - has said he got the sense that Rosenstein was "counting votes" about which Cabinet members he could enlist in the effort.
Rosenstein arrived at the White House days after the reporting expecting to be fired, but he was instead allowed to stay on after private conversations with Trump's then-chief of staff, John Kelly, and the president himself.
In the summer of 2017, with Mueller new in his job, Trump tweeted: "I am being investigated for firing the FBI Director by the man who told me to fire the FBI Director! Witch Hunt."
The president lashed out the following April after the FBI raided the office of his former personal lawyer, Michael Cohen, and months later retweeted the image that showed Rosenstein, Comey and other investigators behind bars.
In his resignation letter, Rosenstein may have made an oblique reference to those chaotic moments and the media attention surrounding them.
"We enforce the law without fear or favor because credible evidence is not partisan, and truth is not determined by opinion polls," Rosenstein wrote. "We ignore fleeting distractions and focus on the things that matter, because a republic that endures is not governed by the news cycle."