Hogwarts School of Witchcraft and Wizardry sorts its students into four houses: Gryffindor, Hufflepuff, Ravenclaw, and Slytherin. This sorting is based on the student's predominant character traits (bravery, loyalty, intelligence, or ambition). Members of these houses live, eat, and compete together for seven years.