Lolita, an orca whale who served as a main attraction at the Miami Seaquarium, died Friday just as plans were in motion to free her from five decades of captivity.

In social media posts, the aquarium announced that the whale, whose name was changed to Toki, had been experiencing signs of distress from what the aquarium’s medical staff believed was a renal condition.

“Toki was an inspiration to all who had the fortune to hear her story and especially the Lummi nation that considered her family,” the post said. “Those who had the privilege to spend time with her will forever remember her beautiful spirit.”