Grant Leadbitter got the goal for Middlesbrough and a strong defending from Middlesbrough sure looks like they were going to get a rare win over Manchester United.
Martial got the equaliser for Manchester United with five minutes left on the clock and Paul Pogba was able to get the winning goal for his side after heading in Mata's cross.
The comeback victory was a perfect gift for Sir Alex Ferguson, who was in the stands celebrating his 75th birthday.
"It's beautiful - it's why we love football, the win is very important," Pogba said.
"We had a lot of chances and we could have won the game easier, but we are happy now that we have three points."