Following the rules of Girl (and Guy) Code is something that almost all BFF squads take pretty seriously. It's the not-so-secret code of ethics that keeps friendships alive by spelling out all the do's and don't's. For instance, you have to be transparent with your friends about awful fashion choices and going after a friend's relative without permission is so not okay. But here's the one rule that's often regarded as the most important: Don't ever go after your friend's ex. We've seen this break even the strongest of friendships in real life, but surprisingly, the same can't be said for most famous BFFs in Hollywood.
While many of us can't even imagine dating a friend's former flame, some celebrities have grown quite comfortable with doing the exact opposite. What's even more interesting, though, is that many of them stayed friends after they dated the same person. It just goes to show that it is possible for friendships to survive after two people hook up with the same person. That said, we definitely wouldn't encourage anyone to use this as an excuse to try it with their own friends' exes...
Who they dated: Nick Jonas
Miley and Nick dated in 2006 when they were just teens. The "Wrecking Ball" singer once admitted that they became boyfriend and girlfriend on the day they met, and Nick mentioned that Miley was actually his first kiss. The young couple dated for two years and Miley revealed she took the breakup pretty hard. But a mere few months later, the "Chains" singer moved on to Selena Gomez, who was always on pretty good terms with Miley. That relationship was a lot more low key, but word still got out and fans suspected that Selena and Miley were in a feud because of Nick. In a 2016 interview, Selena clarified: "We never feuded. We both liked the same guy when we were 16." They goof off on social media to this day.
Who they dated: John Mayer
Way before their feud began, when both artists were still very early in their careers, they were good friends. Taylor was the first to date John Mayer in 2009, and that only lasted for about three months and inspired "Dear John." Fast forward to 2012 and the "Your Body Is A Wonderland" singer is now dating Katy Perry. Even then, Katy and Taylor remained on good terms (their feud started a year after Katy and John's on-and-off relationship). Fans were really rooting for Katy and John, but their romance, unfortunately, came to an end in 2014.
Who they dated: Calvin Harris
In an interesting twist, Ellie actually played matchmaker with her ex-boyfriend and her BFF. She first dated the DJ in 2014 and the relationship was short-lived, but the two still remained good friends. Ellie figured that Calvin would be the perfect match for Taylor because they were both "really awesome and really tall," and it turned out she was right. Taylor and Calvin started dating in 2015 and, after they celebrated their one-year anniversary, it truly felt like Ellie had found the "Bad Blood" singer's soul mate. But sadly, the two broke up only a few months after celebrating their milestone.
Who they dated: Joe Jonas
A much younger Taylor began her relationship with Joe back in 2008. Things seemed to be going really well - until Joe suddenly broke up with her over a 27-second phone call. The breakup inspired a few songs, including "Forever and Always," which goes to show that she took the split pretty hard. But after six years went by, she was so over it that she let her BFF Gigi date the singer. In fact, when Taylor was still dating Calvin Harris in 2015, the pair went on a romantic cruise with Gigi and Joe.
The "Look What You Made Me Do" singer also shared her ex with Demi Lovato, although the two aren't exactly close like BFFs. Two years after Taylor and Joe parted ways in 2008, he and Demi fell in love while they were filming Disney Channel's Camp Rock. It turned out that Demi had a huge crush on her former co-star the entire time, and she once admitted that the moment she fell in love with him was during the scene where he played his guitar by the lake. Even after the two dated, Demi and Taylor remained on pretty good terms.
Who they dated: Selena Gomez
They may not be super close, but we've all seen enough to know that these guys are friendly enough to hang and stay in touch. As you know, Nick and Selena briefly dated in 2008 (she even got him to admit that he wasn't the best boyfriend!). Then in 2009, Selena moved on to Nick's pal, Justin Bieber. She and the "Sorry" singer dated on and off for two years and then rekindled their relationship in 2017, but sadly for Jelena shippers, this only lasted for about a year.
Who they dated: Ellie Goulding
Although Ellie has denied ever being romantically involved with Ed, there are pics of them holding hands that seem to prove otherwise (they looked pretty cozy at the 2013 VMAs). Neither ever publicly confirmed that they were together, so it's uncertain how long they dated. But Ellie did open up about going on a few dates with former One Direction member, Niall. Fans have speculated that Ed's song, "Don't," was about Ellie cheating on him with Niall. They also assumed that he eventually forgave them both. But whether that's really the case or not, Ed and Niall's friendship is still pretty solid to this day.
Who they dated: Brad Pitt
It looks like these two have more in common than their stellar smiles and youthful glow. Gwyneth had a relationship with the World War Z actor from 1994 to 1997. About a year after, Brad started seeing Jennifer. These two even got married in 2000, but then they split after five years together. Still, Gwyneth and Jennifer maintained a pretty close friendship.
Who they dated: Alex Rodriguez & Justin Timberlake
There was reportedly a feud between the two close friends, and it all began when Kate hooked up with Justin Timberlake in 2007, right after his long-term relationship with Cameron (it lasted nearly four years). The two seemed to be on good terms, but when Cameron returned the favor and got with Kate’s ex, Alex Rodriguez, a source revealed that Kate was NOT happy about it. Kate dated him in 2009 while Cameron dated him in 2010. Thankfully, though, they seem to have resolved their issues because they’ve been seen hanging out like BFFs after it all happened.
Who they dated: Luke Wilson
Drew recently celebrated her 44th birthday with Gwyneth and a few of her other closest friends, so it's no secret that the two are like sisters. But it seems like they share the same taste as well, because both of them dated Luke Wilson at one point. Drew dated him from 1996 to 1998 while Gwyneth struck up a one-year romance with the actor after working with him on The Royal Affair. To this day, he's still pretty friendly with both actresses.
Who they dated: Michael Sheen
Most people wouldn't even dream of being friends with their partner's ex, but that's exactly what Sarah Silverman did - and it actually worked out perfectly. Despite Michael's messy split with Kate in 2003, he mentioned that he, Kate, and Sarah were on great terms and that the women even enjoyed making fun of him together. Kate dated Michael in the '90s (they currently have a daughter together) and Sarah dated him from 2014 to 2018.
After her split from Michael, she shared a hilarious Instagram post and mentioned that Kate sent personalized M&M's of her and Michael kissing. It was all in good fun until Sarah had to clarify that she was only kidding. She said: "I posted such a poorly crafted joke that I accidentally framed my sis @katebeckinsale."
Who they dated: Ryan Phillippe
We all know them as Rosalie and Alice from the Twilight films, but the co-stars and good friends also shared a love interest off-screen. Nikki dated Ryan in 2007 (though they're 14 years apart) and Ashley dated the actor in 2013. Fortunately, they didn't let this get in the way of their friendship and they still stay in touch. In 2015, they were spotted hanging out together at Coachella and in 2017, the two had a fun reunion with another Twilight co-star, Kristen Stewart.
Who they dated: Adam Duritz
The two actresses, who developed a close friendship since their days on Friends, have a tight-knit bond to this day. But little did we know that the two have dated the same person. Jennifer dated Adam for a short time in 1995 and Courtney dated the musician in 1997. Fun fact: He and Courteney first met when she appeared in the Counting Crows music video for "A Long December." But their relationship didn't last too long either.
Who they dated: Alex Pettyfer
Okay so maybe they're not BFFs, but they've been spotted hanging out a few times and they're super friendly with each other on the red carpet. The Glee star dated Alex for several months before they split, and apparently, Alex's behavior had become so erratic that Dianna had to check herself into a hotel anonymously. ...YIKES. Still, despite that scary breakup, the actor moved on to Emma Roberts in 2007, after he met her on the set of Wild Child. However, their relationship only lasted for a year.
Who they dated: Fabrizio Moretti
The Strokes drummer dated Drew from 2002 to 2007. Then he went on to date her good friend, Kristen Wiig, in 2011. In an interview, Drew revealed that she definitely understood why her friend and her ex fit together. She said: "It all seems so wacky and incestuous, but that's kind of how life works. It seems fitting that they would find each other. I was like, 'Right, of course, that makes perfect sense.'" Kristen and Fabrizio split up 18 months later. But her friendship with Drew? Still going strong.
Who they dated: P. Diddy & Alex Rodriguez
As we all know, Jennifer Lopez and Diddy had a highly-publicized relationship from 1999 to 2001. Seven years later, though, Diddy dated Cameron for four years. This led to tons of rumors about Jennifer and Cameron being in a major feud. But when both actresses appeared on The Ellen DeGeneres Show to promote their film What to Expect When You’re Expecting, they set the record straight and said it was just another attempt to pit women against each other. As of now, J. Lo is happily engaged to Cameron's ex, Alex Rodriguez.
Who they dated: Kim Kardashian
To be quite honest, we’re not certain if these guys are still friends, but here's what we do know for sure: They’ve been spotted being super friendly with one another in 2007, after they both dated the same girl. The reality star first dated Nick Lachey in 2006 while Nick dated Kim from 2006 to 2007. Both relationships apparently didn’t end so well. Nick once revealed that Kim only used him to become famous and Nick apparently broke things off because Kim lied to him about having a sex tape.
Who they dated: Sheryl Crow
Before the country singer got engaged to Lance Armstrong, she dated Owen Wilson in 1999. Her relationship with Owen lasted for roughly two years before they called it quits, and two years later, she started dating the cyclist. Lance and Sheryl announced their engagement in 2005, but only a year later, they decided to call it off. Despite their shared ex, Owen and Lance are still good friends.