Trump threatens years-long government shutdown, emergency powers to build wall

* Trump threatens to use emergency powers to build wall

* Democrat Pelosi calls meeting with Trump 'contentious'

* More talks scheduled for weekend (Adds quotes from Trump)

By Richard Cowan and Jeff Mason

WASHINGTON, Jan 4 (Reuters) - President Donald Trump threatened to keep the U.S. government partially shut for months or years on Friday after he and Democratic leaders failed to resolve their dispute over Trump's request for $5.6 billion to build a wall on the Mexican border.

After Democratic congressional leaders refused Trump's requests at a meeting in the White House Situation Room, the Republican president threatened to take the controversial step of declaring a national emergency and building the wall without congressional approval.

Trump is withholding his support for a bill that would fully fund the government until he secures money for the wall. As a result, around 800,000 public workers have been unpaid, with about a quarter of the federal government closed for two weeks.

Senate Democratic Leader Chuck Schumer said Democrats had told Trump during the meeting to end the shutdown. "He resisted," Schumer said. "In fact, he said he'd keep the government closed for a very long period of time, months or even years."

Trump confirmed that comment but painted a more positive picture of the meeting, the first since a new era of divided government began when Democrats took control of the House of Representatives on Thursday.

"We had a very, very productive meeting, and we've come a long way," Trump said.

According to a source familiar with the White House discussion, Trump opened the meeting with a speech that lasted at least 15 minutes in which he insisted on the need for billions of dollars to fund a border wall.

The source also said Trump brought up recent impeachment threats during those remarks, arguing that he had notched a strong performance as president and should not be a target for impeachment.

The president later told reporters that Nancy Pelosi, the new Democratic speaker of the House of Representatives, said Democrats were not looking to impeach him.

NATIONAL EMERGENCY?

Raising the stakes in his tussle with the newly emboldened Democrats, Trump threatened extraordinary measures to build the wall, which he says is needed to stem the flow of illegal immigrants and drugs into the United States.

A reporter asked Trump whether he had considered declaring a national emergency to build the wall.

"Yes, I have. And I can do it if I want," Trump said. "We can call a national emergency because of the security of our country ... I may do it. But we can call a national emergency and build it very quickly. And it's another way of doing it. But if we can do it through a negotiated process, we're giving that a shot."