The source and nature of carbon on Mars have been a subject of intense speculation. We report the results of confocal Raman imaging spectroscopy on 11 martian meteorites, spanning about 4.2 billion years of martian history. Ten of the meteorites contain abiotic macromolecular carbon (MMC) phases detected in association with small oxide grains included within high-temperature minerals. Polycyclic aromatic hydrocarbons were detected along with MMC phases in Dar al Gani 476. The association of organic carbon within magmatic minerals indicates that martian magmas favored precipitation of reduced carbon species during crystallization. The ubiquitous distribution of abiotic organic carbon in martian igneous rocks is important for understanding the martian carbon cycle and has implications for future missions to detect possible past martian life.