The Sorting hat is a bewitched item which main purpose is to sort a first year wizard or whitch into their rightful house.
Since the Sorting Hat is a bewitched item it has abilities such as talking and reading a witches or wizards mind when the hat is put into the persons head. It has been said you cannot hide anything from the hat.
The Sorting hat was created to sort any witch or wizard into it's correct house. There are four houses.
- Gryffindor for the brave and courageous people
- Slytherin for the witches/wizards with a goal set mind
- Hufflepuff for the miscellaniouse but because Albus didn't
want their feelings to be hurt he made Hufflepuff for the "kind."
- Ravenclaw for the smart and witful.