How to write meta descriptions for SEO (with good and bad examples)

What is a meta description? How do you write one? Why are meta descriptions important? Do they actually help with search engine optimisation? Can I see some good and bad examples?