The summer after his first year at Hogwarts, Harry Potter finds himself once more trapped with the dreadful Dursleys, his magical existence a forbidden whisper in their mundane home. His twelfth birthday passes with no word from his friends, Ron and Hermione, and the Dursleys' tyranny feels heavier than ever. Then, a peculiar, large-eyed house-elf named Dobby appears in his room, frantically warning Harry not to return to Hogwarts, claiming terrible danger awaits him there. When Harry refuses to stay away from the only place he's ever truly felt at home, Dobby unleashes a bit of house-elf magic, ruining a pivotal dinner party and leading to Harry being locked in his room, his window barred. Just when despair begins to settle, Ron, Fred, and George Weasley arrive in their father's enchanted flying car, whisking Harry away to the joyful chaos of the Burrow, their warm, magical home.
Their attempt to return to Hogwarts via the Hogwarts Express is thwarted when the magical barrier to Platform 9¾ mysteriously refuses to open for Harry and Ron. In a desperate bid to reach school, they take to the skies in the flying Ford Anglia, narrowly avoiding expulsion upon their crash landing into the Whomping Willow. Once at Hogwarts, a new Defense Against the Dark Arts teacher, the vain and self-aggrandizing Gilderoy Lockhart, quickly becomes a source of exasperation. Soon, however, a far more sinister threat emerges. Strange, guttural whispers only Harry seems to hear begin to echo through the castle's ancient corridors. The caretaker, Argus Filch, discovers his beloved cat, Mrs. Norris, petrified, hanging by her tail, with a chilling message scrawled on the wall: "The Chamber of Secrets has been opened. Enemies of the heir, beware."
Panic ripples through the student body as the legend of the Chamber of Secrets resurfaces - a hidden room supposedly built by Salazar Slytherin, one of Hogwarts' founders. It is said to house a monster that only his true heir can control, intended to purge the school of "Muggle-borns," students not from pure-blood wizarding families. Further attacks follow, leaving students like Colin Creevey and Justin Finch-Fletchley, and even Nearly Headless Nick, the Gryffindor ghost, petrified, their bodies stiff and lifeless, yet not quite dead. Suspicion, fueled by Harry's accidental display of Parseltongue during a dueling club session, begins to fall ominously on him as the potential Heir of Slytherin.
Harry, Ron, and Hermione become determined to uncover the truth, embarking on a dangerous investigation. Hermione concocts a Polyjuice Potion in secret, allowing them to transform into Crabbe and Goyle, Draco Malfoy's cronies, hoping to extract information from him, though Draco denies being the heir. Harry also discovers a mysterious old diary belonging to someone named Tom Riddle, a former Hogwarts student from fifty years ago. The diary is blank, but when Harry writes in it, it writes back, showing him a glimpse into Riddle's past, revealing that Hagrid was accused of opening the Chamber during his time at Hogwarts.
The situation escalates dramatically when Hermione herself falls victim to the monster, found petrified with a crucial piece of information clutched in her hand: a page torn from a library book describing a Basilisk, a giant serpent whose gaze is instantly fatal. It becomes clear that the victims were only petrified because they saw the creature indirectly - through reflections, a camera lens, or a ghost. Shortly after, Ginny Weasley, Ron's younger sister, is taken into the Chamber, a chilling message left behind: "Her skeleton will lie in the Chamber forever." The school is on the brink of closure, and Professor Dumbledore is temporarily removed from his post, while Hagrid is unjustly sent to Azkaban.
With Hermione's clue and a cryptic hint from Hagrid to "follow the spiders," Harry and Ron venture into the Forbidden Forest, where they encounter Aragog, a monstrous, ancient acromantula. Aragog reveals that the monster from fifty years ago was not a spider, but something far worse, and that the girl who died was found in a bathroom. Racing back to the castle, they deduce that Moaning Myrtle, the ghost who haunts the girls' bathroom, must be the victim. They find the entrance to the Chamber hidden within her bathroom, a secret passage leading deep beneath the school.
Harry, Ron, and a terrified Gilderoy Lockhart - who attempts to erase their memories but accidentally wipes his own - descend into the Chamber. Once inside, Harry finds Ginny's unconscious form and a shimmering, youthful apparition of Tom Riddle. Riddle reveals his true identity: he is the memory of Lord Voldemort, preserved within the diary, and the true Heir of Slytherin. He explains how he manipulated Ginny through the diary, forcing her to open the Chamber and unleash the Basilisk. As Riddle grows stronger, draining life from Ginny, he summons the monstrous serpent to finish Harry.
Just as the Basilisk attacks, Dumbledore's phoenix, Fawkes, arrives, carrying the Sorting Hat. Fawkes bravely blinds the Basilisk, giving Harry a fighting chance. From within the Sorting Hat, Harry pulls out the Sword of Gryffindor. In a desperate, harrowing battle, he slays the giant serpent, but not before a venomous fang pierces his arm. With his last reserves of strength, Harry plunges the Basilisk fang into Tom Riddle's diary, destroying it and the manifestation of Voldemort's memory. Ginny awakens, weak but alive, and Harry is healed by Fawkes' magical tears.
Returning to the surface, Harry encounters Lucius Malfoy, Dobby's cruel master, and realizes he was the one who slipped the diary into Ginny's cauldron. Harry cleverly tricks Malfoy into freeing Dobby, who is overjoyed at his newfound freedom. Dumbledore is reinstated, Hagrid returns from Azkaban, and the petrified victims are all revived by Professor Sprout's Mandrake Restorative Draught. The school year ends with the looming threat vanquished, but the experience leaves Harry with a deeper understanding of prejudice, choice, and the enduring battle between light and darkness, knowing that the shadow of Voldemort still lingers.