 It is supposed that billions of years age Mars was much warmer and wetter.At that time, carbonates would have formed from water and the carbon dioxide-rich atmosphere.Later the deposits of carbonate would have been buried.