How does heat affect a magnet?

A permanent magnet (i.e. not an electromagnet) will be demagnetised by heating it.