Remember when Rachel and Joshua got together – then broke up – on “Friends”? Well, it turns out that Jennifer Aniston and Tate Donovan were actually going through a real breakup while working together on the sitcom.

RELATED: Jennifer Aniston Opens Up About Being ‘Bullied’, Social Media, And Sexism In Hollywood

In an exclusive interview with Us Weekly, the “Argo” star revealed how he was feeling while filming with his soon-to-be ex-girlfriend.

“I was just happy to be on the team. The only bummer was Jennifer and I were breaking up at the time,” Donovan told the magazine. “And so that was tricky to sort of act, and act like we are just meeting each other, and falling in love, or whatever, interested in each other, when we’re sort of breaking up. That was just tough.”

The 54-year-old guest-starred as Joshua, a personal shopping client of Rachel Green, whom she quickly became infatuated with.

“It was just six episodes. I mean, only because we were breaking up. We were like, ‘Hey, can we not keep doing this? ‘Cause this is really painful and tough,’” he recalled. “The people that know that we dated think that we met on ‘Friends’. But in fact, we had dated for two years before then, and it was over by the time we were on ‘Friends’ together.”

RELATED: Jennifer Aniston Says She ‘Fantasizes’ About A ‘Friends’ Reunion

Donovan also discussed his experience working with the rest of the “Friends” cast: Courteney Cox, Lisa Kudrow, Matthew Perry, David Schwimmer and Matt LeBlanc.

“Those six people were amazing to me. They were fantastic. It wasn’t cliquey for me at all. I was lucky,” he added. “It was really ultimately a great experience of how people can treat you really well, and you still do your job even though you’re sort of dying inside.”

Check out the full interview with Donovan here.

Click to View Gallery
Cast Reunions