Horace Slughorn is the Potions master who returns to Hogwarts Castle at Albus Dumbledore's request in Harry Potter and the Half-Blood Prince, resuming both his subject and his famous hobby: "collecting" talented students for the Slug Club. He had taught Potions and headed Slytherin house decades earlier — the official encyclopedia records that he retired from both posts "unexpectedly" — and his hiding place conceals the reason. As a younger teacher he told Tom Riddle about Horcruxes, then altered his own memory out of shame, and recovering that true memory becomes Harry Potter's task in the novel.
The Lexicon's timeline gives his career its skeleton: Potions master until 1981, then again from 1996, with an earlier stretch as Slytherin's head in the 1940s, when he was, in its words, "quite fond of Tom Riddle." That meeting, dated 1942 in the timeline, is the "dark secret about his own involvement in Voldemort's rise to power" the official profile alludes to. Dumbledore and Harry find him on 13 July 1996 in a Muggle house in Budleigh Babberton, where he had spent "over a year" moving between the homes of absent Muggle families because he feared Death Eater recruitment attempts.
Back at school he restarts the Slug Club — a supper on the Hogwarts Express and a Christmas party are both dated by the Lexicon — and finally surrenders the unaltered Riddle memory on 21 April 1997, with help from a dose of Felix Felicis. The recovered memory is the evidence on which Dumbledore's Horcrux theory rests. Two years later Slughorn fights for the school: the Lexicon records that he "fought in the Battle of Hogwarts whilst wearing emerald-green silk pajamas, where he dueled with Voldemort" on 2 May 1998.
Slughorn is a collector rather than a leader. The official profile lists his skills as potions, "tampering with memories," and "handpicking students who later find fame," and his hobbies as hosting the Slug Club and eating crystallised pineapple. The Lexicon calls his eye for future stars "uncanny" and notes his comfort-loving tastes — rich food, fine wine — alongside a real talent for transfiguration, turning himself into an overstuffed armchair when he wants to go unnoticed.
His warmest documented attachment is to Lily Potter, née Evans, whom the Lexicon calls "one of his favorite students" and "genuinely admired"; it also records that he was one of the first Slytherins Harry met who showed no prejudice against Muggle-born or half-blood wizards. His guilt over Riddle, hidden behind the altered memory, is the vulnerability Harry eventually reaches in the Horcrux Creation Process conversation.
Within the school, Slughorn is the portrait of respectable Slytherin ambition: he courts connections rather than power, avoids open conflict, and still ends up on the right side of the war. In the wider story he matters twice over. His old classroom error gave Riddle the knowledge that split his soul, and his recovered memory shows Dumbledore and Harry how many Horcruxes to hunt. The Battle of Hogwarts completes the arc — the teacher who once hid from both sides stands and duels the Dark Lord his pupil became.