How can you effectively prevent heartburn?

How can you effectively prevent heartburn?