A new theory proposes that Phobos and Deimos resulted from the wreckage of a larger asteroid that wandered too close to Mars and was ripped apart.
Mars may have made its 2 moons by ripping an asteroid apart
Source: space
Source Link: https://www.space.com/the-universe/mars/mars-may-have-made-its-2-moons-by-ripping-an-asteroid-apart