Some of the simple remedies to get rid of heartburn include avoiding chocolate and caffeine, avoiding late night meals, avoiding smoking and drinking alcohol at bedtime, eating dinner at least 2 hours before going to sleep, using pillow to elevate head a little above the rest of the body level while sleeping etc.