WASHINGTON (AP) - Dan Coats, director of national intelligence, is resigning after a turbulent two years in which he and President Donald Trump were often at odds over Russian interference in the 2016 election. Trump named a GOP congressman and fierce loyalist to replace him.

Trump announced Coats‘ departure as Aug. 15 in a tweet Sunday thanking Coats for his service. He said he will nominate Rep. John Ratcliffe, R-Texas, to the post and that he will soon name an acting official. Ratcliffe is a frequent Trump defender who fiercely questioned former special counsel Robert Mueller during a House Judiciary Committee hearing last week.

Coats often appeared out of step with Trump and disclosed to prosecutors how he was urged by the Republican president to publicly deny any link between Russia and the Trump campaign. The frayed relationship reflected broader divisions between the president and the government’s intelligence agencies.

Coats‘ public, and sometimes personal, disagreements with Trump over policy and intelligence included Russian election interference and North Korean nuclear capabilities. Trump had long been skeptical of the nation’s intelligence agencies, which provoked his ire by concluding that Russia interfered in the 2016 presidential election with the goal of getting him elected.

In a letter of resignation released Sunday night, Coats said serving as the nation’s top intelligence official has been a “distinct privilege” but that it was time for him to “move on” to the next chapter of his life. He cited his work to strengthen the intelligence community’s effort to prevent harm to the U.S. from adversaries and to reform the security clearance process.

A former Republican senator from Indiana, Coats was appointed director of national intelligence in March 2017, becoming the fifth person to hold the post since it was created in the wake of the Sept. 11, 2001, attacks to oversee and coordinate the nation’s 17 intelligence agencies.

Coats had been among the last of the seasoned foreign policy hands to surround the president after his 2016 victory. That roster included Defense Secretary Jim Mattis and Secretary of State Rex Tillerson, and later national security adviser H.R. McMaster.

Coats developed a reputation inside the administration for sober presentations of intelligence conclusions that occasionally contradicted Trump’s policy aims.

Coats‘ departure comes days after Mueller’s public testimony on his two-year investigation into Russian election interference and potential obstruction of justice by Trump, which officials said both emboldened and infuriated the president.

Ratcliffe shares Trump’s view of the Mueller probe. Last week, the Texas Republican was one of the most aggressive questioners of the former special counsel at the House Judiciary hearing. In an appearance Sunday on Fox News Channel’s “Sunday Morning Futures,” he also said it was time to move on from Democrats’ talk of impeachment.

Confirmation takes a simple 51-vote majority, under new rules in the Senate, but that leaves slim room for error with Republicans holding a 53-seat majority.

Democrats said Ratcliffe was too political for the intelligence post.

Senate Democratic leader Chuck Schumer tweeted: “It’s clear Rep. Ratcliffe was selected because he exhibited blind loyalty to @realDonaldTrump with his demagogic questioning of Mueller. If Senate Republicans elevate such a partisan player to a position requiring intelligence expertise & non-partisanship, it’d be a big mistake.”

Senate Majority Leader Mitch McConnell issued a statement Sunday that praised Coats but pointedly noted: “The U.S. intelligence community works best when it is led by professionals who protect its work from political or analytical bias and who deliver unvarnished hard truths to political leaders in both the executive and legislative branches. Very often the news these briefings bring is unpleasant, but it is essential that we be confronted with the facts. Dan Coats was such a leader.”

Sen. Mark Warner of Virginia, the ranking Democrat on the Senate’s intelligence committee, tweeted Sunday: “The mission of the intelligence community is to speak truth to power. As DNI, Dan Coats stayed true to that mission.”

Rep. Devin Nunes, the top Republican on the House’s intelligence committee, tweeted that Ratcliffe “understands the intricacies of the intelligence community as well as civil liberties.”

Coats‘ departure had been rumored for months, and intelligence officials had been expecting him to leave before the 2020 presidential campaign season reached its peak.

Coats, in his limited public appearances, repeatedly seemed at odds with the administration, including about Russia.

For instance, he revealed to Mueller’s investigators how Trump, angry over investigations into links between his campaign and Russia, tried unsuccessfully in March 2017 to get him to make a public statement refuting any connection.

“Coats responded that the Office of the Director of National Intelligence (ODNI) has nothing to do with investigations and it was not his role to make a public statement on the Russia investigation,” Mueller’s report said.

Trump later called Coats to complain about the investigation and how it was affecting the government’s foreign policy. Coats told prosecutors he responded that the best thing to do was to let the investigation take its course.

In February, he publicly cast doubt on the prospects of persuading North Korea to end its nuclear weapons program despite the diplomatic efforts of the administration, which has touted its outreach to the isolated country as one of its most important foreign policy achievements.

Coats, in testimony to Congress as part of annual national intelligence assessment, said North Korea would be “unlikely” to give up its nuclear weapons or its ability to produce them because “its leaders ultimately view nuclear weapons as critical to regime survival.”

Trump publicly bristled at the testimony of Coats, the head of the CIA and other officials who contradicted his own positions on Iran, Afghanistan and the Islamic State group as well as North Korea. The intelligence officials were “passive and naive,” he said in a tweet.

Last July, Coats and the president appeared at odds following Trump’s widely panned news conference in Helsinki alongside Russian President Vladimir Putin. Trump said he saw no reason to believe Russia had interfered in the 2016 election, drawing bipartisan criticism and a rebuttal from his intelligence chief.

“We have been clear in our assessments of Russian meddling in the 2016 election and their ongoing, pervasive efforts to undermine our democracy, and we will continue to provide unvarnished and objective intelligence in support of our national security,” Coats said.

The president later said he misspoke in Helsinki.

That same month, Coats appeared to scoff when told in an interview that Trump had invited Putin to Washington.

“Say that again,” Coats said, cupping his hand over his ear on live television. He took a deep breath and continued: “OK. That’s going to be special.”

He later said his comments at the Aspen Security Forum in Colorado were “in no way meant to be disrespectful or criticize the actions of the president.”

In December, Coats said he was “deeply saddened” when Mattis resigned in protest of Trump’s foreign policy, including the decision to withdraw American troops from Syria.

Coats, 76, served in Congress from 1981 to 1999 as a member of the House and in the Senate. He was ambassador to Germany from 2001 to 2005 and returned to the Senate in 2011. He decided not to seek re-election and retired from Congress in January 2017.

Sign up for Daily Newsletters Manage Newsletters

Copyright © 2020 The Washington Times, LLC.