If the jagged structures sticking out of the flat, dry landscape in northwest New Mexico seem otherworldly, that’s for a good reason. Protruding from the high desert plain, Shiprock has much in common with terrain on Mars, where volcanic activity formed similar razor-like, vertical walls.

Shiprock rises 500 meters (more than 1,600 feet) above the surrounding desert, but there was a time when it hid below the soil like a sunken ship under water. The Bureau estimates that it formed 750 to 1000 meters (2,460 to 3,280 feet) below the Earth’s surface. The formation was likely created in a hydrovolcanic eruption, in which “magma in upward-migrating dikes encounters groundwater, and heats it to steam under confining pressure,” according to a paper on the Navajo Volcanic Field. Two perpendicular walls—“radial dikes” that radiate outward from the volcano’s center—come together at the rocky outcrop. Initially, hot lava seeped into cracks in the older rock here, creating dikes. Since then, erosion has worn away the sandstone and shale around the dikes.

The red planet’s ridges are thought to have been formed by similar volcanic and erosional processes to those that created Shiprock. “The features on Mars could be intrusive dikes like Shiprock,” said Laszlo Kestay, director of the Astrogeology Science Center for the U.S. Geological Survey. “The region has plenty of volcanism and the Medusae Fossae Formation is easily eroded, making it a good host-rock for such features.”

The origin of Mars’s Medusae Fossae continues to puzzle geologists. Located in the Amazonis Planitia region of the planet, it lies between two volcanic domes, Tharsis and Elysium. Scientists generally agree that the formation is young and fine-grained, but beyond that, they are divided in theories on how it was created. Some hypotheses propose that it was formed as result of deposits from a meteorite impact into an aquifer underneath the planet’s surface. Others suggest that it was created by pyroclastic flows—the outpouring of hot ash, lava, and other materials that run downhill after an eruption.

“For Shiprock, it is the classic location to show what is going on under the vents for a volcano,” Kestay said. Although he is not aware of any studies directly on Shiprock that have been applied to the Red Planet, “It is the best example of a process that undoubtedly happens on Mars.”