Selena Gomez says her breaking up with Justin Bieber was the “best thing” that ever happened to her.

The 30-year-old singer, who split from Justin, 28, in 2018, makes the declaration on her new Apple + documentary ‘My Mind and Me’.

She said: “Everything was so public. I felt haunted by a past relationship that no one wanted to let go of.

Selena Gomez: 'Breaking up with Justin Bieber was best thing that ever  happened to me' | Entertainment | yakimaherald.com

“Then I just moved past it, and I wasn’t afraid anymore.

“I feel like I had to go through the worst possible heartbreak ever and then just forgetting everything at the drop of the hand, it was really confusing.

Selena Gomez Calls Justin Bieber Breakup 'Best Thing That Ever Happened To  Me' 04/2023

“But I just think that needed to happen and ultimately it was the best thing that ever happened to me.”

Selena dated Justin on-off for eight years and the split inspired her 2020 songs ‘Lose You to Love Me’, which she says took her 45 minutes to write.

Justin Bieber and Selena Gomez's messy relationship, explained - Vox

She added on the show: “It’s about more than a lost love. It’s me learning to choose myself, to choose life, but also hoping that people can find grace and peace in that too.

“The song is about knowing that you completely lost every part of who you are just to rediscover yourself again.”

Justin started dating his now-wife Hailey Baldwin, 25, just after they split and the month after Justin married Hailey, Selena reportedly suffered a breakdown connected to her lupus and entered treatment for her mental health.

Selena Gomez and Justin Bieber Drama Timeline - Jelena Breakup Drama  Timeline

Selena recently told Rolling Stone magazine: “I grew up thinking I would be married at 25. It wrecked me that I was nowhere near that – couldn’t be farther from it.”

She recently threw herself a lavish wedding-themed 30th birthday and said about the do being attended by celebrities including Cara Delevingne: “We had lovely drinks, and it was beautiful, and then my friend Cara comes in and brings strippers. So I would like to say it was a mixture of sophisticated and hysterical.”

Other guests at the party included Billie Eilish, Miley Cyrus, Camila Cabello and Selena’s younger sister, Gracie.