It was a delta-v opposite to the direction of travel and that slowed Messenger enough so the relatively weak gravity of Mercury could capture the spacecraft and put it into an elliptical orbit around the planet rather than the Sun.
BBC: Juno Jupiter probe gets British boost