In the Harry Potter series, the Hogwarts School for Witches and Mages is divided into four houses, each bearing the names of its founders: Godric Gryffindor, Salazar Slytherin, Rowena Ravenclaw, and Helga Hufflepuff. Competitors compete against each other throughout the school year, either earning or losing points in several ways, to win the Inter House Cup. Each house has its own Quidditch team – also competes against each other for the Quidditch Cup. These two rivalries gave rise to a rivalry between the houses, especially between the Gryffindors and the Slytherins — the two houses throughout the series.
Hogwarts homes are a place to live and study for the students. Each year, several groups from each home share dormitories and classrooms. This system is not unique to Hogwarts, but also in many real schools in some English speaking countries today. Like many other topics at Hogwarts, author J. K. Rowling applied true boarding schools to bring life to Harry Potter’s world. House rivalries, separate hostels, and the score system are all in the real world. The Hogwarts dwellings are possibly the earliest real-world grouping system.
See more at: Hogwarts Starry Night Van Gogh poster