Republican Donald Trump has refused to commit to accepting the election result if he loses, in the final TV debate against Hillary Clinton.
“I will tell you at the time,” he told moderator Chris Wallace. For days he has claimed the election is “rigged”.
The Las Vegas debate continued the campaign’s bitter tone, with Mr Trump calling Mrs Clinton a “nasty woman”.
Polls show Mr Trump is losing in key battleground states after facing a slew of sexual assault allegations.
The final battle of wits came less than three weeks before election day on 8 November.
- Trump v Clinton: Who won the debate?
- Reality Check: Clinton v Trump round three
- ‘Bad Hombres’ quip inspires mocking memes
- ‘Nasty woman’ insult embraced by Clinton’s female fans
The candidates declined to shake hands before and after the political sparring, setting the tone for another debate marked by shouting and interrupting.
Mr Trump appealed to the Republican establishment by vowing to appoint Supreme Court justices with a “conservative bent” who would overturn a key ruling that made abortion legal in the US and protect gun rights.
He also stuck to his pledge to deport undocumented immigrants and secure US borders.
Meanwhile, Mrs Clinton firmly declared she would stand up for the LGBT community, defend abortion rights, focus on restoring the middle class and equal pay for women.
“The government has no business in the decisions that women make,” she said.
In one of the more striking moments, Mr Trump twice declined to say whether he would accept the election’s outcome, breaking with the country’s long-standing tradition of a losing candidate’s concession after the votes are counted.
“That’s horrifying,” Mrs Clinton shot back.
“He is denigrating and he is talking down our democracy. And I, for one, am appalled that somebody who is the nominee of one of our two major parties would take that kind of a position.”
Mr Trump’s response drew sharp criticism from Republican Senator Lindsey Graham, who said the candidate was “doing the party and country a great disservice by continuing to suggest the outcome of the election is out of his hands and ‘rigged’ against him,” according to a statement.
Nicolle Wallace, an NBC News analyst and advisor to Senator John McCain’s 2008 presidential campaign, said on NBC: “He may as well have laid down in his own coffin with a hammer and nail and pounded it in himself.”
Other highlights from the debate at the University of Nevada, include:
- Mrs Clinton said Mr Putin wants Mr Trump elected because he wants a puppet as US president
- “We have some bad hombres and we are going to get them out,” said Mr Trump, as he stood by his pledge to build a border wall
- Mrs Clinton said she would introduce the biggest jobs program since World War II
- Mr Trump suggested she and President Barack Obama co-ordinated the violence at his rally in Chicago earlier this year
When asked about her paid speech to a Brazilian bank in which she spoke of her dream of open trade and open borders, Mrs Clinton said she was talking about energy policy.
In one key exchange, he attacked her 30 years of “very bad experience” and she responded by going through her timeline, comparing where she was to where Trump was.
While she was in the White House helping to track down Osama Bin Laden, “he was hosting the Celebrity Apprentice”, she said.