Sora and his friends eventually arrive at Hollow Bastion, Maleficent's headquarters, where Riku takes the Keyblade from Sora, revealing himself to be its intended user with Sora only receiving it in his absence; Donald and Goofy reluctantly leave Sora as per their orders. Sora later challenges Riku, stating that his heart derives strength from his friends, inspiring Donald and Goofy to return to him and regaining control of the Keyblade. After the three defeat Maleficent, Sora finds Kairi's comatose body and confronts Riku, who is now possessed by Ansem, a figure who has been manipulating Maleficent from the beginning to open the way to Kingdom Hearts. Ansem reveals Kairi as the seventh Princess of Heart, her heart having transferred into Sora's body when the Destiny Islands were destroyed. After defeating the possessed Riku, Sora impales himself with Ansem's Keyblade, which is designed to unlock hearts, releasing both his and Kairi's hearts; Kairi's heart returns to her body, in turn completing the final Keyhole, while Sora becomes a Heartless. Kairi recognizes Sora's Heartless, and the light in her heart restores him to human form.