Hagrid becomes the Care of Magical Creatures professor in Harry Potter and the Chamber of Secrets (Book 2), starting the 1992–1993 school year (Harry's second year).
He is appointed by Dumbledore after the previous professor, Silvanus Kettleburn, retires.