The Sorting Hat is a magical object at Hogwarts that assigns new students to one of the school's four houses.
Role in the books
It appears during the welcoming ceremony in Harry Potter and the Philosopher's Stone and returns in later school years. The Hat's decisions help introduce the qualities associated with Gryffindor, Slytherin, Ravenclaw and Hufflepuff.
