In the Chamber, Harry finds Ginny, still alive, but unresponsive. Tom Riddle steps out of the darkness and Harry asks for his help. Tom, a memory from the diary, has been corresponding with Ginny through his diary. She wrote to him about all of her woes, and how she has a crush on Harry. Tom gained power over Ginny and used her to open the Chamber of Secrets. Tom framed Hagrid, to take the blame, and sat in waiting until someone would find his diary and finish Slytherin's goal. Tom tells Harry that he doesn't care about killing "mudbloods" (people who do not have pure wizarding blood) and that his new target has become Harry. Riddle wants to know how Harry escaped Voldemort, and Harry wants to know why he cares. Riddle tells him "I am Lord Voldemort." Fawkes, the phoenix, flies in and drops the sorting hat. Riddle calls the Basilisk, and the phoenix pokes out the snake's eyes. Harry shoves the sorting hat on his head and finds a sword inside it. Harry fights but is bitten by the poisonous snake right before he kills it. The phoenix cries on his arm and heals Harry. Harry plunges the Basilisk fang into Riddle's diary, and Riddle disappears. Ginny wakes up, and they leave the chamber, finding Ron and a confused Lockhart outside, because Lockhart's memory charm backfired and erased his memory. Fawkes flies them through the pipe back to Myrtle's bathroom, and they run to McGonagall's office and push the door open.