What is this, and is it important?

What is this, and is it important?

I see this in the beginning of some jquery scripts:

$(function() {

// some stuff

});

I need a simple (dumbed-down) explanation of what it does. And yes, I've looked around for answers, but I'm falling on my face with this.

I do know it makes things work!

thanks!