Harry Potter and the Chamber of Secrets

Harry ignores warnings not to return to Hogwarts, only to find the school plagued by a series of mysterious attacks and a strange voice haunting him. 

Plot
Soon after the start of Harry's second year at Hogwarts School of Witchcraft and Wizardry, messages on the walls of the corridors say that the Chamber of Secrets has been re-opened and that the "Heir of Slytherin" would kill all pupils whose parents are not both magical – which includes Hermione. Over the next few months, various inhabitants of the school are found petrified in corridors. Meanwhile, Harry, Ron, and Hermione discover Moaning Myrtle, the ghost of a girl who was killed the last time the Chamber was opened and now haunts the girls' toilet in which she died. Myrtle shows Harry a diary bearing the name Tom Marvolo Riddle. Although its pages are blank, it responds when Harry writes in it. Eventually the book shows him Hogwarts as it was fifty years ago. There he sees Tom Riddle, Head Boy at the time, blame Rubeus Hagrid, who was then thirteen years old and already kept dangerous creatures as pets, for opening the Chamber.

Four months later the diary is stolen, and shortly afterward Hermione is petrified. However, she holds a note explaining that the culprit is a basilisk, a huge serpent whose gaze kills those who look into its eyes directly but only petrifies those who see their reflection. Hermione concluded that the monster travels through the school's pipes and emerges through the toilet Myrtle haunts. As the attacks continue, Cornelius Fudge, the Minister of Magic, holds Hagrid in the wizards' prison as a precaution. Lucius Malfoy, Draco's father and a former supporter of Voldemort who claims to have reformed, announces that the school's governors have suspended Dumbledore from the position of headmaster.

After Ron's younger sister, Ginny, is taken into the Chamber, the staff insist that the Defence Against the Dark Arts teacher, Gilderoy Lockhart, should handle the situation. However, when Harry and Ron go to his office to tell him what they have discovered about the basilisk, Lockhart reveals that he is a fraud who took credit for the accomplishments of others and attempts to erase the boys' memories. Disarming Lockhart, they march him to Moaning Myrtle's toilet, where Harry opens the passage to the Chamber of Secrets. In the sewers under the school, Lockhart grabs Ron's wand and tries again to wipe the boys' memories, but since Ron's wand had been damaged, the spell backfires, inflicting total amnesia on Lockhart, collapsing part of the tunnel, and separating Harry from Ron and Lockhart.

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 weeps on Harry's wound to cure it. Harry stabs the diary with the broken fang, and Riddle vanishes. 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 Ginny's bag 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.

Connection to Harry Potter and the Half-Blood Prince

Chamber of Secrets has many links with the sixth book of the series, Harry Potter and the Half-Blood Prince. In fact, Half-Blood Prince was the working title of Chamber of Secrets and Rowling says she originally intended to present some "crucial pieces of information" in the second book, but ultimately felt that "this information's proper home was book six". Some objects that play significant roles in Half-Blood Prince first appear in Chamber of Secrets: the Hand of Glory and the opal necklace that are on sale in Borgin and Burkes; a Vanishing Cabinet in Hogwarts that is damaged by Peeves the Poltergeist; and Tom Riddle's diary, which is later shown to be a Horcrux