Oscar winner Kevin Spacey has apologized to Anthony Rapp after the 'Star Trek: Discovery" actor alleged Spacey made an unwanted sexual advance toward him when he was 14 years old. Spacey, at the time, was 26.

Rapp made the accusation about the "House of Cards" and "American Beauty" star in an interview with BuzzFeed posted on Sunday night.

According to Rapp, Spacey befriended him in 1986 when both performed in Broadway shows. The older actor invited the teenager over to his apartment for a party, and, at the end of the night, picked him up, placed him on his bed, and climbed on top of him, making a sexual advance. Rapp said he was able to squirm free and left Spacey's apartment,

"The older I get, the more I can't believe it," Rapp, 46, told the website. "I could never imagine (that) anyone else I know would do something like that to a 14-year-old boy."

Six actors told BuzzFeed that Rapp had informed them about the alleged encounter in the 1990s and 2000s.

Less than three hours after the story appeared on BuzzFeed, Spacey offered an apology on Twitter.

"I have a lot of respect and admiration for Anthony Rapp as an actor. I'm beyond horrified to hear his story," Spacey said in a statement posted on the social media site. "I honestly do not remember the encounter, it would have been over 30 years ago. But if I did behave as he describes, I owe him the sincerest apology for what would have been deeply inappropriate drunken behavior, and I am sorry for the feelings he describes having carried with him all these years."

In addition, Spacey said Rapp's story "encouraged me to address other things about my life," including his sexuality.

"I know that there are stories out there about me and that some have been fueled by the fact that I have been so protective of my privacy," Spacey said. "As those closes to me know, in my life, I have had relationships with both men and women. I have loved and had romantic relationships with men throughout my life, and I choose now to live as a gay man. I want to deal with this honestly and openly and that starts with examining my own behavior."

Rapp, who described himself in a 1997 interview as "primarily homosexual," began his acting career at the age of 9. He appeared in such stage shows as "Precious Sons" and "Rent."

Rapp's accusations come in the wake of the Harvey Weinstein scandal.

The movie mogul has been accused on sexually harassing and assaulting actresses.