NASA’s Mariner 9 became the first spacecraft to orbit another planet when it entered Mars’ orbit.

Source