Former President Barack Obama said his administration was successful because he surrounded himself with people who didn’t always agree with him and because he believes “in things like facts and logic.”

“Things like rule of law, democracy and you know, competence and facts; those things are not partisan, but they also don’t happen automatically,” Obama, appearing at a conference in Salt Lake City, said Wednesday. “There has to be citizens who insist on it and participate to make sure it happens. Democracy is a garden that has to be tended.”

Obama’s successor, President Donald Trump, is mired in a spate of ongoing scandals. Special counsel Robert Mueller’s investigation into Russia’s alleged interference in the 2016 election and possible collusion between Moscow and the Trump campaign, is about to wrap up.

Trump’s former attorney and longtime fixer, Michael Cohen, has spent the past week speaking with Congressional lawmakers and has directly accused the president of a pattern of lies and criminal activity. Former Trump campaign chairman Paul Manafort will be sentenced on Thursday for tax and bank fraud. Trump ally Roger Stone was recently indicted by Mueller’s office on one count of obstruction, five counts of making false statements and one count of witness tampering.

RELATED: Obama at the UNC vs Duke basketball game

9 PHOTOS Barack Obama at the UNC vs Duke Game See Gallery Barack Obama at the UNC vs Duke Game DURHAM, NORTH CAROLINA - FEBRUARY 20: Former President of the United States, Barack Obama, watches on during the game between the North Carolina Tar Heels and Duke Blue Devils at Cameron Indoor Stadium on February 20, 2019 in Durham, North Carolina. (Photo by Streeter Lecka/Getty Images) DURHAM, NC - FEBRUARY 20: Former U.S. President Barack Obama talks with ESPN analyst Maria Taylor while attending the game between the North Carolina Tar Heels and the Duke Blue Devils at Cameron Indoor Stadium on February 20, 2019 in Durham, North Carolina. (Photo by Lance King/Getty Images) DURHAM, NC - FEBRUARY 20: Former U.S. President Barack Obama attends the game between the North Carolina Tar Heels and the Duke Blue Devils in the first half at Cameron Indoor Stadium on February 20, 2019 in Durham, North Carolina. (Photo by Lance King/Getty Images) DURHAM, NORTH CAROLINA - FEBRUARY 20: Former President of the United States, Barack Obama, watches on during the game between the North Carolina Tar Heels and Duke Blue Devils at Cameron Indoor Stadium on February 20, 2019 in Durham, North Carolina. (Photo by Streeter Lecka/Getty Images) Former President Barack Obama attends as North Carolina visits Duke on Wednesday, Feb. 20, 2019, at Cameron Indoor Stadium in Durham, N.C. (Robert Willett/Raleigh News & Observer/TNS via Getty Images) DURHAM, NC - FEBRUARY 20: Former U.S. President Barack Obama (top center) attends the game between the North Carolina Tar Heels and the Duke Blue Devils in the first half at Cameron Indoor Stadium on February 20, 2019 in Durham, North Carolina. (Photo by Lance King/Getty Images) Former President Barack Obama joins fans during an NCAA college basketball game between Duke and North Carolina in Durham, N.C., Wednesday, Feb. 20, 2019. (AP Photo/Gerry Broome) Former President Barack Obama joins fans while the national anthem is played during an NCAA college basketball game between Duke and North Carolina in Durham, N.C., Wednesday, Feb. 20, 2019. (AP Photo/Gerry Broome) Feb 20, 2019; Durham, NC, USA; former President Barack Obama looks on during the first half between the Duke Blue Devils and North Carolina Tar Heels at Cameron Indoor Stadium. Mandatory Credit: Rob Kinnan-USA TODAY Sports Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

The White House is also struggling with its efforts to negotiate with North Korean leader Kim Jong Un and with reports that the federal trade and budget deficits have skyrocketed under Trump’s leadership.

While Obama didn’t directly mention Trump on Wednesday, he told a crowd of more than 9,000 people at the Qualtrics X4 Summit that he was able to avoid “big scandals and indictments” by hiring good teams.

″(Don’t be) afraid to resort to gathering people that have greater experience than you do,” Obama said, per The Deseret News. “I was good at making sure that the people who are working for me, with me, were there for the right reasons and there was a core integrity to what they were doing.”

The former president also took a swipe at the prevalence of polarized news, saying the internet helps society craft their own personal echo chambers.

“People want their own facts that are suited to their opinions rather than shaping their opinions around facts,” Obama said, according to The Associated Press.

This article originally appeared on HuffPost.

More from :

Tim WHO?!?! Trump's weird moment with Apple CEO Tim Cook takes Twitter by storm

Anderson Cooper rips Ivanka: 'what does she actually do?'

Omarosa names the insider whose testimony 'will be the end of Donald Trump'