Judges in Washington DC are hearing a landmark legal case about whether Donald Trump should be immune from criminal prosecution.
The Republican former president's lawyers are arguing that the office of the White House shields him from his 2020 election fraud charges.
Mr Trump, who is in the courtroom, is accused by a special counsel of trying to overturn Joe Biden's victory.
The outcome of this hearing could have a huge impact on Mr Trump's future.
His lawyers are using the same defence in another set of election charges he faces in the US state of Georgia.
The three-judge panel in Washington DC will hear the oral arguments at the US Court of Appeals for the DC Circuit on Tuesday but then rule at a later date.
The issue is likely to end up in the US Supreme Court in the heat of a 2024 election campaign in which Mr Trump is favourite to win the Republican nomination.
Prolonged legal wrangles over immunity could delay his criminal trials beyond November's election, where he is expected to face Democratic President Joe Biden.
The former president has for years cited presidential immunity in his efforts to thwart civil and criminal cases brought against him.
While the US Constitution makes no mention of presidential immunity, courts have generally supported the notion that government officials are protected from lawsuits.
There is no legal precedent, however, about the criminal prosecution of sitting or former presidents.
In legal filings ahead of this hearing, the special counsel prosecuting him, Jack Smith, warned the court that a failure to allow Mr Trump to be prosecuted "threatens to license presidents to commit crimes to remain in office".
The immunity defence was rejected by US District Court Judge Tanya Chutkan in December, who ruled that having served as president does not entitle him to a "lifelong 'get-out-of-jail-free' pass".
And judges appeared sceptical of the defence on Wednesday, asking Mr Trump's lawyers whether it would allow him to assassinate political rivals with impunity.
"Could a president order SEAL Team Six to assassinate a political rival? That is an official act, an order to SEAL Team Six?" Judge Florence Pan asked.
In a fundraising email on Wednesday, Mr Trump said President Biden and Mr Smith were "attempting to strip" him of his rights.
The courtroom is just blocks away from the US Capitol, where his supporters rioted to stop Joe Biden from being certified as president in January 2021.
To bolster their case, Mr Trump's lawyers will point to his acquittal by the Senate at his impeachment for his actions leading up to that violence.
"Nor may a president face criminal prosecution based on conduct for which he was acquitted by the US Senate," says his appellate brief. "The indictment against President Trump is unlawful and unconstitutional. It must be dismissed."
A poll by CBS News suggests most Americans believe Mr Trump should not be protected from prosecution for actions he took while president.
The criminal trial in this election fraud case is scheduled for 4 March, but is on hold pending the ruling by the appeals court, which has two judges appointed by Democratic presidents and one by a Republican.
Whichever way the judges rule, the case is widely expected to end up in the US Supreme Court, where conservatives hold a 6-3 majority.
Last month, the top court dismissed a request by Mr Smith to expedite a ruling on Mr Trump's immunity claim.
The Supreme Court also ruled last month that it would hear an appeal by Mr Trump against the state of Colorado for barring him from the ballot due to a rarely cited insurrectionist clause of the US constitution.