Selena Gomez apologized on Snapchat to ex-boyfriend Justin Bieber for feuding with him over his new girlfriend Sofia Richie after Bieber abruptly deleted his Instagram account.

“What I said was selfish and pointless,” Selena said on Snapchat.

Gomez, 24, apologized after slamming Bieber, 22, for defending galpal Sofia, the 17-year-old daughter of pop legend Lionel Richie.

Justin was upset that haters viciously attacked Sofia on Instagram after he posted a photo of the pair having fun in Japan, where Bieber is on his Purpose world tour.

“I’m gonna make my Instagram private if you guys don’t stop the hate,” Bieber threatened. “This is getting out of hand. If you guys are really fans you wouldn’t be so mean to people I like.”

Selena Gomez, who dated Bieber from 2010 to 2013, snarkily said Justin shouldn’t post photos of his girlfriend if he can’t handle negative feedback.

“If you can’t handle the hate, then stop posting pictures of your girlfriend lol,” Gomez wrote on Instagram. “It should be special between you two only.”

selena gomez justin bieber instagram

Justin clapped back and said Selena only dated him to get famous, and was trolling him on social media for more attention.

“It’s funny to see people that used me for attention and still try to point the finger this way. Sad,” Bieber wrote. “All love.”

Then Selena shot back: “Funny how the ones that cheated multiple times, are pointing the finger at the ones that were forgiving and supportive, no wonder fans are mad. Sad. All love.”

Justin replied: “Oh, I forgot about you and Zayn [Malik]?”

Bieber responded to the Instagram feud by taking his account private and then deleting it entirely hours later. Justin’s 78 million Instagram followers were no doubt upset.

It’s unclear why Selena Gomez a 24-year-old woman thought it was okay for Internet trolls to bully a 17-year-old girl.

Selena complained when she was barraged with hateful comments (and death threats) from Bieber fans during their two-year romance.

At the time, Justin also stepped in and asked fans not to bully Gomez, as TheImproper has reported.

In 2014, Selena was brutally fat-shamed on Instagram after gaining weight and looking flabby in her bikini. Gomez slammed trolls on social media, and later admitted she got therapy to heal from the weight bullying.

Update: Selena seeks treatment for depression and anxiety