Many types of craters exist on Mars. Most are generated by impacts of asteroids and comets.
In this area though, we think these craters may be due to steam explosions. This happens on the Earth when hot lava runs over icy ground.
Photo credit: NASA/JPL/University of Arizona
Note: For more information, see PIA17673: Cratered Cones in Tartarus Montes.