Final answer:
The spacecraft known to have visited Mercury are Mariner 10, which flew by in 1974, and MESSENGER, which orbited the planet from 2011 until 2015.
Step-by-step explanation:
Two spacecraft Mariner 10 and MESSENGER are known to have visited the planet Mercury. Mariner 10 was the first to give us a close-up look at Mercury in 1974, capturing over 2000 photographs with details as fine as 150 meters resolution. The MESSENGER spacecraft followed, being launched in 2004, and after a series of complex flybys of Earth, Venus, and Mercury, it settled into orbit around Mercury in 2011, providing detailed mapping of the planet's surface until its mission ended in 2015.