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

What is a title tag? How do you write one? Why are title tags important? Do they actually help with search engine optimisation?