It’s been an emotional summer for Selena Gomez. While fans everywhere were obsessing over her new single “Fetish,” the pop singer had a lot going on in her personal life. In June, she received a kidney transplant from her longtime friend Francia Raisa — an important medical event she kept secret until early September.

“So I found out I needed to get a kidney transplant due to my lupus and was recovering,” Selena wrote on Instagram. The sentiment was paired with an image of Selena, 25, and Francia, 29, holding hands in the hospital.

View this post on Instagram

I’m very aware some of my fans had noticed I was laying low for part of the summer and questioning why I wasn’t promoting my new music, which I was extremely proud of. So I found out I needed to get a kidney transplant due to my Lupus and was recovering. It was what I needed to do for my overall health. I honestly look forward to sharing with you, soon my journey through these past several months as I have always wanted to do with you. Until then I want to publicly thank my family and incredible team of doctors for everything they have done for me prior to and post-surgery. And finally, there aren’t words to describe how I can possibly thank my beautiful friend Francia Raisa. She gave me the ultimate gift and sacrifice by donating her kidney to me. I am incredibly blessed. I love you so much sis. Lupus continues to be very misunderstood but progress is being made. For more information regarding Lupus please go to the Lupus Research Alliance website: www.lupusresearch.org/ -by grace through faith

A post shared by Selena Gomez (@selenagomez) on

“It was what I needed to do for my overall health,” she continued. “I honestly look forward to sharing with you, soon my journey through these past several months as I have always wanted to do with you. Until then I want to publicly thank my family and incredible team of doctors for everything they have done for me prior to and post-surgery.”

In 2015, Selena first opened up about her medical diagnosis. After canceling her tour and taking time off, Sel told Billboard, “I was diagnosed with lupus, and I’ve been through chemotherapy. That’s what my break was really about. I could’ve had a stroke.”

Being in the public eye, Selena struggled with her diagnosis and treatment, all while receiving criticism for her ever-changing body, her decision to cancel her tour, and more. Before she revealed her lupus diagnosis, it was speculated that she had entered rehab because she was struggling with addiction. She decided open up about her health in order to set the record straight.

“I wanted so badly to say, ‘You guys have no idea. I’m in chemotherapy. You’re a–holes,’” she said at the time. “But I was angry I even felt the need to say that. It’s awful walking into a restaurant and having the whole room look at you, knowing what they’re saying. I locked myself away until I was confident and comfortable again.”