Roger Stone, a long-time friend of and political adviser to Donald Trump, was sentenced to just over three years in prison for lying to congress and obstructing a federal investigation.

Federal authorities zeroed in on Mr Stone during former special counsel Robert Mueller’s Russian election meddling investigation. Those investigators focused on the long-time Republican political operative’s contacts with a Russian hacker and possible exchanges he had with Wikileaks founder Julian Assange, whose organisation released reams of Democratic National Committee emails that analysts said likely aided Mr Trump’s successful 2016 White House bid.

The Justice Department initially had planned to recommend a nine-year sentence, but attorney general William Barr stepped in to suggest to Judge Amy Berman Jackson an alternative with options for shorter prison time. That came after the president called a nearly decade-long sentence a “miscarriage of justice”, prompting Mr Barr to publicly rebuke the president weighing in on Justice Department business in a television interview – which Mr Trump soon defied with more DOJ-themed tweets.

The judge told Mr Stone’s camp and federal prosecutors that a sentence of seven or nine years would be too harsh, but called a sentence of simply probation “insufficient”. She also said Mr Stone was convicted of “covering up for the president”, according to accounts from inside the courtroom, potentially creating difficult optics for a presidential pardon – in an election year in which the incumbent is on the ballot, at least. And she appeared to rebuke Mr Trump, without naming him, saying this: “The court cannot be influenced by those comments,” she said, dubbing them “inappropriate”.

Donald Trump celebrity president: A decade in two halves Show all 29 1 /29 Donald Trump celebrity president: A decade in two halves Donald Trump celebrity president: A decade in two halves Trump styles his 'You're fired!' pose in his Trump Tower office in June 2012. At the time he was known as a reality TV star on The Apprentice Diane Bondareff/Invision/AP Donald Trump celebrity president: A decade in two halves He was also well known as the patron of the Miss Universe competition Getty Donald Trump celebrity president: A decade in two halves Early signs of Trump's ambition for the presidency can be found everywhere. Not least in his 2011 book 'Time to get tough: Making America #1 again' Getty Donald Trump celebrity president: A decade in two halves Trump with Piers Morgan in November 2010. Piers Morgan has long held that he and Trump are good friends Getty Donald Trump celebrity president: A decade in two halves Trump appeared on Fox & Friends, his favourite show, in August 2011 Getty Donald Trump celebrity president: A decade in two halves Trump considered running in the 2012 election, where he would have faced Barack Obama. He is speaking here at an event for a Republican women's group Getty Donald Trump celebrity president: A decade in two halves Trump was subject to a Comedy Central roast in 2011. He is pictured here being roasted by rapper Snoop Dogg Getty Donald Trump celebrity president: A decade in two halves Given that this Trump store is in the lobby of Trump Tower, it can be said that Trump sells merchandise of himself out of his own home Getty Donald Trump celebrity president: A decade in two halves Trump held meetings with prominent Republicans when considering his 2012 bid. He is pictured here with Alaska governor Sarah Palin Getty Donald Trump celebrity president: A decade in two halves He didn't end up running in 2012 afterall, instead endorsing Republican candidate Mitt Romney AFP/Getty Donald Trump celebrity president: A decade in two halves Trump's golf course in Aberdeen proved controversial in 2012 when he began lobbying the Scottish government against wind power in order that they wouldn't install turbines off the shore by his new course Getty Donald Trump celebrity president: A decade in two halves He even gave evidence to a Scottish parliamentary committee discouraging wind energy AFP/Getty Donald Trump celebrity president: A decade in two halves He still found time for a round of course AFP/Getty Donald Trump celebrity president: A decade in two halves On 16 June 2015, Trump announced that he would run for the presidency of the United States in the 2016 election as a Republican Getty Donald Trump celebrity president: A decade in two halves His campaign was divisive, courting controversy wherever he went. Ultimately he was declared the Republican candidate in June 2016 Getty Donald Trump celebrity president: A decade in two halves Trump took part in the TV debate against opponent Hillary Clinton on 9 October Getty Donald Trump celebrity president: A decade in two halves Trump and wife Melania vote in the presidential election on 8 November 2016 AFP/Getty Donald Trump celebrity president: A decade in two halves Hillary Clinton conceded defeat at 2:50am on 9 November and president-elect Trump swiftly delivered his victory speech to a crowd of supporters Getty Donald Trump celebrity president: A decade in two halves News coverage around the world focused on the huge political upset that Trump's victory spelled AFP/Getty Donald Trump celebrity president: A decade in two halves Trump met with president Obama to discusss transition planning on 10 November. AFP/Getty Donald Trump celebrity president: A decade in two halves Donald Trump and Nigel Farage pose in the golden elevator at Trump Tower on 12 November 2016. Farage was the first British politician to meet with Trump after the election LeaveEUOffical/Twitter Donald Trump celebrity president: A decade in two halves The inauguration of Donald Trump took place on 20 January 2017. Trump's press secretary Sean Spicer boasted that the crowd was the 'largest ever' to witness an inauguration, a claim that was proved not to be true Getty Donald Trump celebrity president: A decade in two halves In his first 100 days as leader, Trump signed 24 executve orders, the most of any president AFP/Getty Donald Trump celebrity president: A decade in two halves One of Trump's most memorable election pledges was to build a wall between the US and Mexico. He is standing here in front of a prototype for a section of the wall Getty Donald Trump celebrity president: A decade in two halves Trump's meetings with other world leaders have provided no short supply of photo opportunities Getty Donald Trump celebrity president: A decade in two halves Trump was welcomed to the UK by the Queen and a state banquet was held at Buckingham Palace in his honour Reuters Donald Trump celebrity president: A decade in two halves Not everyone welcomed the president. Mass protests were held in London throughout his visits in both 2018 and 2019 EPA Donald Trump celebrity president: A decade in two halves One of the most significant meetings Trump has held with another leader was with North Korea's Kim Jong Un. In June 2019, Trump became the first sitting president to set foot in North Korea Getty Donald Trump celebrity president: A decade in two halves 2020 will see president Trump fight for a second term in office, who knows what the next decade will bring? Getty

Those comments did not stop the president from tweeting during the sentencing hearing. In one, he wrote: “‘They say Roger Stone lied to congress.’ @CNN OH, I see, but so did Comey (and he also leaked classified information, for which almost everyone, other than Crooked Hillary Clinton, goes to jail for a long time), and so did Andy McCabe, who also lied to the FBI! FAIRNESS?”

Mr Stone’s legal counsel has requested a new trial after the president suggested he did not receive a fair one.

Four federal prosecutors left the case following Mr Trump’s “miscarriage of justice” tweet, a highly unusual move that prompted howls from Democrats and legal experts about Mr Trump abusing his office and shredding long-sacrosanct norms following his Senate acquittal.

Though Judge Berman Jackson opted to move ahead with the sentencing, she is reviewing whether or not to grant his lawyers’ calls for a new trial.

They made the request after the president himself weighed in on behalf of his old friend, alleging Mr Stone failed to be judged by an objective jury.

“Now it looks like the fore person in the jury, in the Roger Stone case, had significant bias. Add that to everything else, and this is not looking good for the ‘Justice’ Department’,” Mr Trump tweeted on 13 February.

Mr Trump expanded on his views on Tuesday during a tarmac press gaggle before his West Coast campaign swing.

“I think it was a very, very rough thing that happened to Roger Stone,” he said, before floating what some took as a possible pardon for Mr Stone and one of his former national security advisers.

“And you look at all of these other people, and then you look at what happened to [convicted] General [Michael] Flynn, a highly respected man,” the president said. “I mean, his life has been destroyed. If you’re looking at Roger Stone for a tweet and some other things. You take a look at what’s happening to these people. Somebody has to stick up for the people.”

It was Mr Mueller who indicted Mr Stone during his high-profile investigation of Russia’s 2016 interference and all things Trump. In a filing about that indictment, Mr Mueller referred to Mr Stone’s interactions with “Organisation 1”, which is assumed to be Wikileaks.

The former special counsel told a court that that entity had “posted documents stolen by others”, adding the unnamed organisation also “released tens of thousands of documents stolen” from the Democratic National Committee and others, including John Podesta, who in 2016 was the campaign chairman for then-Democratic presidential nominee Hillary Clinton.

Ironically, the president is slated to give the commencement address at “Hope for Prisoners” in Las Vegas, an organisation that helps prisoners transition from incarceration back into civilian life.

According to tweets from those inside the courtroom, Ms Berman Jackson appeared during the proceedings to side with the new team of federal prosecutors, who were back on Thursday to ask for a sentence of no less than seven years and up to nine years.

Mr Stone’s legal team noted at 67, he is unlikely to repeat any untoward behaviour, while contending he cares about animals, soon will become a great-grandfather and helps former professional football players with brain injuries.