Novels
Hermione is introduced in Harry Potter and the Philosopher's Stone (1997) when she meets Harry Potter and Ron Weasley on the Hogwarts Express. After mocking Ron for his inability to perform a spell, she proves her knowledge by declaring that she has memorized all their school textbooks. At Hogwarts, Hermione annoys other students with her vast knowledge, and Harry and Ron consider her arrogant. They heartily dislike her until they rescue her from a troll; she is so thankful that she lies to protect them from punishment, thus winning their friendship. Later, Hermione's knack for logic and her penchant for library research aid the trio in their quest to locate a magical object known as the Philosopher's Stone. On their way to the Stone, Hermione solves a puzzle and defeats the dangerous Devil's Snare plant.
Rowling said she resisted requests by her editor to remove the troll scene. She explained that due to Hermione's arrogance and irritating personality during the beginning of the first novel, something "huge" was needed to catalyze her friendship with Harry and Ron.
In Harry Potter and the Chamber of Secrets (1998), Hermione develops a liking for Gilderoy Lockhart, the new Defence Against the Dark Arts professor. During a confrontation between the Gryffindor and Slytherin Quidditch teams, a brawl nearly ensues after Draco Malfoy calls her a "Mudblood", an insulting term for a Muggle-born wizard. Hermione concocts a Polyjuice Potion so she, Harry and Ron can infiltrate the Slytherin dormitory and collect information about the Heir of Slytherin. The boys drink the potion and take on the appearance of Malfoy's friends, but Hermione, having used a cat hair in her vial of potion, ends up looking like a cat and cannot join the mission. When a basilisk escapes from the Chamber of Secrets, Hermione successfully identifies it through library research, but is Petrified by its reflection. Though she lies incapacitated in the hospital wing, the information she found aids Harry and Ron in their quest to solve the mystery of the Chamber. Hermione is revived after Harry kills the basilisk, but is distraught to learn that all end-of-year exams have been cancelled.
In Harry Potter and the Prisoner of Azkaban (1999), Hermione buys a cat named Crookshanks, who takes to chasing Ron's pet rat, Scabbers. Before the start of term, McGonagall secretly gives Hermione a Time-Turner, a device which lets her travel through time to handle her busy class schedule. During the school year, tension arises between Hermione and her two best friends. Harry becomes furious with her because she told McGonagall that he got a Firebolt racing broom, which was then confiscated to be inspected for traces of dark magic. Ron is angry at her because he believes Crookshanks was responsible for Scabbers' disappearance, although Hermione maintains that Crookshanks is not to blame. Later, Hermione uses the Time-Turner to help Harry rescue Sirius Black and the hippogriff Buckbeak.
Hermione is disturbed by the way house-elves are treated in Harry Potter and the Goblet of Fire (2000). She establishes the Society for the Promotion of Elfish Welfare (SPEW) to lobby for their rights. When students from other schools of magic visit Hogwarts for the Triwizard Tournament, Hermione is asked to the Yule Ball by the Bulgarian Quidditch star Viktor Krum of Durmstrang. She later gets into a heated argument with Ron after he accuses her of "fraternising with the enemy". She supports Harry throughout the Triwizard Tournament, helping him prepare for each task. After the second task, Krum asks her to visit him in Bulgaria over the summer, but she politely declines. Near the end of the term, Hermione takes action against Rita Skeeter, a tabloid journalist and unregistered Animagus who published defamatory material about Hermione, Harry, and Hagrid.
In Harry Potter and the Order of the Phoenix (2003), Hermione becomes a Gryffindor prefect. Her new friendship with Luna Lovegood has a rocky start after Hermione criticises The Quibbler, a periodical published by Luna's father. When the Daily Prophet alleges that Harry fabricated the story of Voldemort's return, Hermione defends Harry to fellow students. She also bickers frequently with Ron. After the Ministry of Magic decrees that Hogwarts students will not be taught practical defensive magic, Hermione proposes that Harry should instruct students in defensive spells. Many students are interested in the secret practice group, which they call Dumbledore's Army. Near the end of the novel, Hermione is involved in a battle at the Department of Mysteries. She is seriously injured by the Death Eater Antonin Dolohov, but makes a full recovery.
The new Potions professor Horace Slughorn invites Hermione to join his exclusive "Slug Club" in Harry Potter and the Half-Blood Prince (2005). During tryouts for the Gryffindor Quidditch team, Hermione helps Ron retain his position as keeper by sabotaging his rival, Cormac McLaggen. Hermione's romantic feelings for Ron continue to grow, and she invites him to Slughorn's Christmas party. Ron, however, has become romantically involved with Lavender Brown. Hermione feuds with Ron until he suffers a near-fatal poisoning, which frightens her enough to reconcile with him. After Dumbledore's death, Hermione and Ron both vow to stay by Harry's side regardless of what happens.
Hermione accompanies Harry and Ron on the quest to destroy Voldemort's remaining Horcruxes in Harry Potter and the Deathly Hallows (2007). Before leaving home, she ensures the safety of her parents by placing a false memory charm on them, which causes them to believe they are Wendell and Monica Wilkins. She prepares for their journey by filling an enchanted purse with things they will need. She also inherits Dumbledore's copy of The Tales of Beedle the Bard, which allows her to discover secrets about the Deathly Hallows. When Hermione and Harry encounter Voldemort and his snake Nagini in Godric's Hollow, Hermione casts a spell which saves her and Harry but which breaks Harry's wand.
When Hermione, Harry and Ron are caught by Snatchers, Hermione temporarily conceals Harry's identity by disfiguring his face with a Stinging Jinx. She tries to pass herself off as a half-blood to avoid persecution, but she and her friends are recognised and taken to Malfoy Manor. Bellatrix Lestrange tortures Hermione with the Cruciatus Curse and demands to know how the trio obtained the Sword of Gryffindor. Hermione, Harry, Ron and the other prisoners being held in Malfoy Manor are eventually rescued by the house-elf Dobby. Later, Hermione impersonates Bellatrix using Polyjuice Potion in order to steal a Horcrux from Gringotts. She, Harry, and Ron fight in the Battle of Hogwarts, during which Hermione destroys the Horcrux with a basilisk fang. Hermione and Ron share their first kiss during the battle.
In the novel's epilogue, which is set nineteen years after Voldemort's death, Hermione and Ron are sending their daughter Rose Granger-Weasley off to her first year at Hogwarts. They also have a younger son named Hugo. Although the epilogue does not state that Hermione and Ron are married, news articles published after the release of Deathly Hallows refer to Hermione as Ron's wife.