Donald Trump’s campaign was rattled Friday when a 2005 video surfaced of him boasting of his attempt to “f- -k” a married woman and claiming that other women let him grab them by the “p- - -y” because he’s a “star.”

The vulgar video, obtained by The Washington Post, was said to be recorded Sept. 16, 2005, and captures Trump bantering with then-“Access Hollywood” host Billy Bush as they ride a bus to meet “Days of Our Lives” star Arianne Zucker.

Its release created a sensation just two days before the next presidential debate in St. Louis — and caused several high-profile Republicans to turn on him. Some even told him to step down.

“You know, I moved on her, actually,” Trump is heard saying of a woman — later identified as “Entertainment Tonight” host Nancy O’Dell — as the bus pulls into a studio parking lot.

“I moved on her and I failed. I’ll admit it,” he continues. “I did try and f- -k her. She was married.”

“That’s huge news,” Bush, now a co-host of NBC’s “Today” show, responds, sounding bewildered.

“I moved on her very heavily. In fact, I took her out furniture shopping. She wanted to get some furniture. I said I’ll show you where they have some nice furniture,” Trump adds to laughter.

“I moved on her like a bitch, but I couldn’t get there, and she was married. And then all of a sudden I see her, she’s not got the big phony t- -s and everything.”

Trump had been scheduled to make a cameo on the soap opera and wore a microphone as “Access Hollywood” trailed him.

“Your girl’s hot as s- -t, in the purple,” Bush is heard saying, apparently of Zucker.

“Whoa,” Trump replies. “I’ve gotta use some Tic Tacs, just in case I start kissing her . . . You know, I’m automatically attracted to beautiful — I just start kissing them. It’s like a magnet. Just kiss. I don’t even wait.

“And when you’re a star, they let you do it. You can do anything . . . Grab them by the p- - -y.”

The two men come into view as they exit the bus to meet Zucker.

“How about a little hug for The Donald?” Bush asks the soap-opera star. “He just got off the bus.”

As Zucker complies and air-kisses him, Trump comments, “Melania said this was OK.”

Trump married Melania, his third wife, in January 2005.

It was not clear when his supposed attempt to seduce O’Dell may have occurred. Although O’Dell is not named in the video, “Access Hollywood” host Natalie Morales reported Friday that he was referring to the “Entertainment Tonight” host.

Trump appeared to confirm the validity of the recording on Friday and offered a rare apology.

“This was locker-room banter, a private conversation that took place many years ago.

Bill Clinton has said far worse to me on the golf course — not even close,” he said in a statement. “I apologize if anyone was offended.”

Hillary Clinton quickly slammed her rival.

“This is horrific,” she said on Twitter. “We cannot allow this man to become president.”

Trump appeared to confirm the validity of the recording on Friday and offered a rare video apology — before launching an attack on the Clintons.

“Anyone who knows me, knows these words don’t reflect who I am. I said it. I was wrong, and I apologize,” Trump said on the video released late Friday.

“I never said I’m a perfect person nor pretended to be someone that I’m not. I’ve said and done some things I regret and the words released today on this more than a decade-old video are one of them,” Trump said.

“I said some foolish things but Bill Clinton has actually abused women and Hillary has bullied and intimidated his victims. We will discuss this more in the coming days.”