A security guard at the building where Amber Heard used to live with Johnny Depp testified under oath that he saw Elon Musk visiting Heard while Depp was off filming a "Pirates of the Caribbean" movie, and the whole thing felt "wrong" to him.

According to court documents obtained by The Blast, Alex Romero gave a deposition to Depp's attorneys on January 30, 2019. Although Romero was deposed during the former couple's divorce, this deposition came as part of Depp's ongoing legal battle with his former attorneys.

In the transcript, Romero says he would often buzz Musk into the building "late at night," around 11:00 PM or midnight. He says he would clock out at 1:00 AM and Musk would still be there when his shift was over.

Romero claims that Musk would visit the building "a few times a week."

According to the transcript, Romero recalled a time when he talked to his supervisor about Musk's visits to Heard, saying, "I told her it was really bad that I saw Elon Musk going inside the penthouse when Johnny Depp was not home."

RELATED Johnny Depp Files $50 Million Defamation Lawsuit Against Amber Heard

Romero testified that he remembered an occasion when Musk visited while "Johnny Depp was in the Caribbean filming a movie." He said he that escorted Musk to Heard's apartment with Depp in March 2015, shortly after the couple had a blowout argument where Depp claims she threw a glass vodka bottle at him, which resulted in Depp having to have his finger surgically reattached.

At one point, Romero said Musk's visits did not feel "right" to him. When asked to explain, Romero said, "Well, she's a female, he's a male. Both of them by themselves upstairs is, you know, she's married. I don't know Elon Musk personally. I don't know if he's married or not. I don't know anything about his personal life.

RELATED Johnny Depp Claims Amber Heard Started Improper 'Relationship' With Elon Musk One Month After Marriage

As The Blast first reported, Depp sued Heard for defamation over an op-ed Heard wrote last year where she referred to herself as “a public figure representing domestic abuse.” Depp denies ever abusing Heard.

The lawsuit claims that only a month after the marriage, Heard began a relationship with Musk.

"Unbeknownst to Mr. Depp, no later than one month after his marriage to Ms. Heard, she was spending time in a new relationship with Tesla and Space-X founder, Elon Musk," the documents state.

Heard and Musk were first linked in 2016 as they each went through public breakups (Musk filed for divorce again from “Westworld” actress Talulah Riley in 2015). They broke up in August 2017 and then got back together a few months later … only to split again a few months after that.

In December 2018, Heard gave an interview with The Hollywood Reporter where she described her relationship with Musk by saying, “Elon and I had a beautiful relationship, and we have a beautiful friendship now.”

A rep for Elon Musk tells The Blast, “Elon and Amber didn’t start seeing each other until May 2016, and even then it was infrequent. They were not on the same continent for most of this time. Their relationship didn’t become romantic until much later.”