In the 768-page tome, entitled "A Promised Land" and out on November 17, Obama flashes back on his political career but admits in the personal, revealing life in the White House grew his smoking habit and caused tension in his relationship with his wife, Michelle.
He also speaks to race connections in the United States, writing it was his own historic election as the nation's first black president that caused some of the current separation in the country.
WATCH: MORE SCARE TACTICS FROM THE DEMOCRATIC PARTY
"It was as if my very presence in the White House had triggered a deep-seated panic, a sense that the natural order had been disrupted," Obama writes in the book.
WATCH BILL MAHER: STORMY DANIELS TESTIMONY DIFFERENT THAN HER 2018 INTERVIEW
Donald Trump, he claims, felt the country's condition and exploited it to win the White House in the 2016 election.
"Which is exactly what Donald Trump understood when he started pedaling assertions that I had not been born in the United States and was thus an illegitimate president. For millions of Americans spooked by a Black man in the White House, he promised an elixir for their racial anxiety," he writes.
PARISHIONERS TURNED HEROES: LOUISIANA CHURCHGOERS THWART ARMED TEENAGER'S SINISTER PLAN
Yet, Obama argues, the origins of the problem came before the current president. He traced it to John McCain's decision to name Alaska Gov. Sarah Palin as his running mate in the 2008 presidential election.
MELINDA GATES ANNOUNCES RESIGNATION AND FUTURE PLANS...
"Through Palin, it seemed as if the dark spirits that had long been lurking on the edges of the modern Republican Party -- xenophobia, anti intellectualism, paranoid conspiracy theories, an antipathy toward Black and brown folks -- were finding their way to center stage," Obama writes.
HIGH LIFE TO HARD TIME: FORMER FACEBOOK DEI MANAGER’S SCAM UNFOLDS BEFORE OUR EYES
Nonetheless, he goes on to clear McCain of any obligation, saying he believed the senator, who died of brain cancer in 2018, wouldn't have made the same choice if he knew what the future held.
EWWWW! NYC MUSEUM OF NATIONAL HISTORY CURATOR ARRESTED AT AIRPORT WITH HIS CREEPIEST FRIENDS...
"I'd like to think that given the chance to do it over again, he might have chosen differently," wrote Obama, who gave one of the tributes at McCain's funeral. "I believe he really did put his country first."
BILL O'REILLY'S UNEXPECTED TAKE ON TRUMP'S CAMPAIGN STRATEGY
It recounts his first presidential election, his effort to pass healthcare reform, and his work with Republican congressional leaders Senator Mitch McConnell and then-House Speaker John Boehner.
WHOA! HOLLYWOOD ACTRESS TAKES HARSH JABS AT MIKE PENCE, WHAT'S HER BEEF?
His mentions of Trump come through Trump's judgment of himself, including fanning the lie that Obama was not born in the United States.
He notes Trump's thoughts were originally seen as a joke but he came to view them as part of the Republican Party's attempts to appeal to white Americans' concerns about the first black president.
Although Obama blames Trump in his book, it does not trace back to Trump to when all the issues had begun.