Earth has a global magnetic field with magnetic north and south poles, but Mars does not. Instead, Mars has regions of strong magnetization on its surface that we call magnetic anomalies. These magnetic anomalies are a result of a process called remanent magnetization, but we do not know what caused this remanent magnetization to occur in the first place. In this investigation we tested if lightning could be a cause by running simulations of lightning on the planet’s surface. Our results are a close match to the actual magnetic anomalies found on terrain that formed during the first 400 million years of Mars’s existence, which suggests that lightning could be a feasible explanation.