While Ron attempts to tunnel through the rubble, Harry enters the Chamber of Secrets, where Ginny lies beside the diary. As he examines her, Tom Riddle appears, looking exactly as he did fifty years ago, and explains that he is a memory stored in the diary. Ginny wrote in it about her adolescent hopes and fears, and Riddle won her confidence by appearing sympathetic, possessed her, and used her to open the Chamber. Riddle also reveals that he is Voldemort as a boy. He further explains that he learned from Ginny who Harry was and about his own deeds as Voldemort. When Ginny realised that she had been responsible for the attacks, she attempted to throw the diary away, which is how it came into Harry's possession. Riddle then releases the basilisk to kill Harry. Dumbledore's pet phoenix, Fawkes, brings a magnificent sword wrapped in the Sorting Hat. Harry uses the sword to kill the basilisk, but only after being bitten by the creature's venomous fangs, one of which breaks off. As Riddle gloats over the dying Harry, Fawkes cries on Harry's wound to cure it. Harry stabs the diary with the broken fang, and Riddle vanishes.[1] Ginny revives and they return to Ron, who is still watching over the amnesic Lockhart. Fawkes carries all four out of the tunnels.
Harry recounts the whole story to Dumbledore, who has been reinstated. When Harry mentions his fears that he is similar to Tom Riddle, Dumbledore says that Harry chose Gryffindor House, and only a true member of that House could have used Godric Gryffindor's sword to kill the basilisk. Lucius Malfoy bursts in, and Harry accuses him of slipping the diary into one of Ginny's books while the pupils were shopping for school books. Finally, the basilisk's petrified victims are revived by a potion, the preparation of which has taken several months.