As a substitute, Messi scored very quickly.
Barcelona won the thrilling match.
The Catalans moved to second place in the points table after beating Real Betis 3-2 in the Spanish La Liga.
Betis took the lead in the 38th minute at the Venito Villamarin on Sunday with a goal from Barza Iglesias
Desperate to get back into the game, Barcelona failed to scores in the first half.
The coach put Messi on the field in the 58th minute to increase the edge of the attack.
The Spanish giants equalized in the 59th minute with a great goal by the Bara captain.
Ronald Koeman’s side took a 2-0 lead in the 6th minute through a suicide goal by Victor Ruiz.
However, in the 85th minute of the dramatic match, Real Betis equalized with Ruiz’s goal. But at the last minute, Barcelona left the field with the victory of Trincomalee.
With this victory, the Catalans have pushed Real Madrid to the number three in the points list.