NASA’s Mariner 10 became the first spacecraft to reach Mercury.

The Mariner 10 flew close to Mercury to take pictures of the planet.

Source