What causes heartburn and what are effective treatments for it?

What causes heartburn and what are effective treatments for it?