The Gods of Mars is a science fantasy novel by American writer Edgar Rice Burroughs. As in many of his novels, Burroughs begins with a frame story that explains how he (Burroughs) came into possession of the text, implying it recounts true events.
At the end of the first book, A Princess of Mars, John Carter is unwillingly transported back to Earth. The Gods of Marsbegins with his arrival back on Barsoom (Mars) after a ten-year separation from his wife Dejah Thoris, his unborn child, and the Red Martian people of the nation of Helium, whom he has adopted as his own. Unfortunately, Carter materializes in the one place on Barsoom from which nobody is allowed to depart: the Valley Dor, which is the Barsoomian afterlife.