Deputy Attorney General Rod Rosenstein (R) speaks as FBI Director Christopher Wray (L) listens during a news conference to announce a China-related national security law enforcement action December 20, 2018 at the Justice Department in Washington, DC.

Rod Rosenstein, the deputy attorney general whose appointment of special counsel Robert Mueller roiled the Trump administration for two years, has submitted his resignation to President Donald Trump.

Rosenstein's resignation is effective May 11. He said in a speech last week that he would leave his Justice Department post in May but did not reveal a specific date then.

Rosenstein's announcement comes two weeks after the release to Congress and the public of a redacted version of Mueller's final report by Attorney General William Barr.

His resignation letter to Trump made pointed mention of the Justice Department's responsibility to "avoid partisanship" and to uphold the "supremacy of the law."

"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 keep the faith, we follow the rules and we always put America first."

The letter did not mention Mueller by name or make specific mention of the findings in the report.

But several parts of the letter seemed to be refer to the special counsel's investigation and to his final report.

That report found no evidence that Trump's presidential campaign coordinated with Russians who were trying to influence the American electorate to support Trump's bid for the White House in 2016.

Mueller's report did not accuse Trump of obstructing justice by trying to interfere with the probe of Russian interference, but did say, "The President's efforts to influence the investigation were mostly unsuccessful, but that is largely because the persons who surrounded the President declined to carry out orders or accede to his requests."