This drawing shows a cross-section of the Martian frozen ground.
Click on image for full size
NASA
Martian Cryosphere
The drawing shows the depth at which water may be frozen into the ground. To have water running on the surface of Mars, this water region must be near to the surface. This may have happened at various times in the history of Mars as the climate warmed.