Using masks

Okay, here's something I didn't see in the archive: How do you use masks?

I'm a Mac user with photoshop CS. I've been making icons for a while, and understand brushes, but I somehow seem clueless as to how one uses masks. If anyone could explain even just the basics, it would be MOST appreciated.

Thanks!