The water was brought to the forming Earth by planetesimals that accreted beyond the orbit of Mars.
The simple explanation for the purple Planet's color is that its regolith, or floor material, consists of plenty of iron oxide — the equal compound that gives red and rust their hue.
Ferric oxides (an oxide of iron) are gifted everywhere on the planet: within the bulk crust, lava outflows, and the dirt oxidized by chemical reactions with the martian ecosystem.
Mars' atmosphere contains each carbon dioxide and water, each of which offer a supply of oxygen to react with the iron inside the surface.
Learn more about iron oxide here: brainly.com/question/3842710
#SPJ4