President Trump repeatedly urged his election campaign to dig up Hillary Clinton’s missing emails during the 2016 election — while Republican operatives mounted a years-long hunt for his Democratic rival’s private missives, according to special counsel Robert Mueller.

After famously saying at a July 2016 rally that he hoped Russia would “find the 30,000 emails” Clinton said she’d deleted from her private server, then-candidate Trump also asked people involved his campaign to find the messages, according to the newly-released report into Mueller’s probe.

“Michael Flynn — who later served as National Security Advisor in the Trump Administration — recalled that Trump made this request repeatedly,” the report states.

Flynn enlisted longtime Senate GOP staffer Barbara Ledeen and political activist Peter Smith, an investment banker, in the effort, according to the report.

Mueller reported that Ledeen had already been pursuing Clinton’s emails since at least December 2015, when she emailed Smith a 25-page proposal that claimed the Democrats’ presidential frontrunner likely had her email server “breached long ago” and that “Chinese, Russian and Iranian intelligence services could ‘re-assemble the server’s email content.’ ”

Part of Ledeen’s pitch called for “checking with certain intelligence sources ‘that have access through liaison work with various foreign services’ to determine if any of them had gotten to the server,” the report reads.

Smith declined to participate in that venture.

But just weeks after Trump’s 2016 remarks, Smith attempted to locate and obtain the emails himself — establishing a corporation, raising tens of thousands of dollars and “recruiting security experts and business associates,” the report says.

In September 2016, Smith wrote and sent a document that his effort was “in coordination” with Trump’s campaign, and listed top Trump advisers including Flynn, Sam Clovis and Kellyanne Conway.

That same month, he reached back out to Ledeen, who claimed to have obtained a cache of Clinton emails off of the “dark web.”

But a technical adviser paid for by controversial private military contractor Erik Prince — brother of current Education Secretary Betsy DeVos — determined the documents were bunk.

Flynn was forced to resign as Trump’s national security adviser in February 2017, just a month after Trump took office, because of a growing scandal that surrounded his contacts with Russian Ambassador Sergey Kislyak.

In December 2017, he pleaded guilty to charges that he lied to the FBI and agreed to cooperate with Mueller’s probe.