An “obnoxious” Tiger Woods cracked tasteless jokes and breached golf etiquette during an awkward outing with former President Bill Clinton, according to a new book.

Clinton had agreed to play a round with Woods in 2006 ahead of the grand opening of the Tiger Woods Learning Center in Anaheim, Calif., according to the biography “Tiger Woods,” which was excerpted by Golf Digest last week.

The strange encounter was meant to resolve a long-simmering feud between the Democrat and the golf great — which stemmed from Woods declining an invitation to appear with Clinton at an event honoring Jackie Robinson at Shea Stadium in 1997, said the book, written by longtime author Jeff Benedict and veteran TV journalist Armen Keteyian.

Woods was still less than impressed with Clinton years later — and it showed, the book said.

“I can’t wait to talk about p—-,” Woods allegedly said while waiting for Clinton to arrive at the golf facility.

The athlete then acted “completely indifferent” to the former president when he arrived, riding alone in his golf cart and acting fully engrossed with his phone, the book said. And when Woods was on the links, he allegedly laughed whenever Clinton had a bad drive.

Woods would also leave the green while others were putting — an egregious breach of golf etiquette, the book said.

At one point, the golfer allegedly asked Clinton, who was dominating the conversation, “How do you remember all that s–t?”

“He was really obnoxious,” a witness said, according to the book. “It was so clear to me that day who Tiger really was. I’ve never seen the president more put off by a person than that experience.”

But the encounter was hotly disputed by Doug Band, Clinton’s former deputy assistant and counselor.

Band said there is “hardly an accurate or true word” in the excerpt.

“The whole notion that Tiger was disrespectful toward the president is completely false,” Band told Golf Digest. “The way the authors describe the round of golf (and the events surrounding it) is not only inaccurate, it’s mean-spirited.”

Band also cast doubt on the book’s description that there was “much wrangling” to get Clinton to agree to the outing, saying the former president was “delighted” to be there.

“Tiger and President Clinton shared a cart and were connected at the hip for most of the day,” Band said.

Band said Woods did tell jokes and ridiculed Clinton’s shots — but did so “as friends do on the golf course.”

The aide agreed that Woods quipped, “How do you remember all that s—t” but did so with “awe and respect.”

“Again, the authors completely missed the tone of the day,” Band said.

Clinton himself expressed deep admiration for Woods.

“Let me tell you something about Tiger Woods,” Band recalled Clinton saying on the flight home. “Most people wait until they are much older to make such significant philanthropic gifts and tackle a complicated issue like education. Tiger’s done more for education as a 30-year-old golfer than most people do in a lifetime.”

Co-author Benedict — who ran for Congress as a Democrat in 1992 — has written 15 books, including another with Keteyian, “The System: The Glory and the Scandal of Big-Time College Football.”

Keteyian has worked for ABC, CBS and HBO and has contributed to “60 Minutes.”