The craters on Mercury were formed by impacts from asteroids, comets, and other space debris over billions of years.
It's possible you're thinking of something else. Could you provide more context or information about what you're asking?