Barcelona hosted Valencia at the Camp Nou on Saturday in La Liga keen to maintain their lead at the top of the table.
It wasn't likely to be an easy encounter for the Catalan side, with Valencia determined to take something from the game, given their own aims of securing a Champions League finish.
However, Luis Suarez fired Barcelona into the lead inside the opening sixty seconds, making for an excellent start.
Barcelona were tested to the limits, and after Pique conceded a penalty, Valencia stepped up to the spot. Parejo took on the responsibility, but Bravo kept him out.
Valencia kept pushing, the post coming to the rescue for Barcelona after a good effort from Alcacer had Bravo beaten.
The second half was end to end, chances for both sides. Although Barcelona had their customary advantage of dominating possession, Valencia refused to buckle.
Into stoppage time, and with Valencia throwing everything forward in search of an equaliser, the ball broke free for Lionel Messi. The Argentine maestro wouldn't be denied, surging forward and firing in the finish.
Goal number 400 for Messi at Barcelona - arriving in his 469th official match, 406 of which have been in the starting eleven.
Still just 27-years-old, and with such an amazing record behind him, all eyes will be on arguably the best player on the planet as he tries to shoot his way towards the next landmark: 500 goals in the shirt of Barcelona.