Image copyright Getty Images Image caption Sarah Sanders also said it was "very hard" to take morality lessons from the Democratic Party

White House press secretary Sarah Sanders has told a religious television network that God "wanted Donald Trump to become president".

Ms Sanders made the claim in an interview with the Christian Broadcasting Network (CBN), saying it was the reason Mr Trump was in office.

The press secretary also said it was "very hard" to take morality lessons from the Democratic Party.

Democrats have attacked Mr Trump's proposed border wall as immoral.

US evangelicals strongly support the president.

The Washington Post reports Mr Trump won 80% of the white evangelical vote in 2016, a higher share than Republican presidential candidates Mitt Romney and John McCain in previous elections.

CBN broadcast the interview with Ms Sanders on Wednesday, conducted by David Brody and Jennifer Wishon.

Responding to Mr Brady's question about Mr Trump's position, Ms Sanders said: "I think God calls all of us to fill different roles at different times and I think that He wanted Donald Trump to become president."

"That's why he's there and I think he has done a tremendous job in supporting a lot of the things that people of faith really care about."

Image copyright Getty Images Image caption Mr Trump has hosted faith leaders in the Oval Office

When asked about House Speaker Nancy Pelosi position on the proposed border wall - a divisive issue at the heart of the longest US government shutdown in history - the press secretary attacked Ms Pelosi's suggestion such a barrier was immoral.

"Honestly, it's very hard at this point to even take a lecture from Democrats on what is moral and what isn't," she said, calling it a "ridiculous charge" and saying Ms Pelosi "may even regret making that comment".

"Protecting the people of your country... is the fundamental duty of being president of the United States," Ms Sanders said.

The interview comes days after Mr Trump tweeted his support for Bible study.

Several states have legislation pending that would make Bible literacy courses part of public school education.

The American Civil Liberties Union attacked Mr Trump's endorsement.

"More often than not, public school Bible classes resemble Sunday school lessons and violate students' and parents' First Amendment rights," senior attorney Heather Weaver wrote.

"Public schools are for education, not religious indoctrination."