Having trouble with MOSFET

I thought that was only needed if the MOSFET was controlling something with a winding like a motor. Since I'm controlling a relay, I thought the diode wasn't needed.

What do you think makes a relay work? Magic Cheese?