What is a pure function?

I have been hearing about pure functions for a while now. I never really understood why. I decided to write a post about it to clarify it for myself and for others.