What is a hook?

And why do you need one?