A 10-man Malaga held Barcelona to 2-2 at the Camp Nou in the Copa del Rey quarterfinals on Wednesday.
The first leg began with Malaga's normally solid defence rocking as Barcelona nearly scored twice within the first seven minutes. Malaga has conceded only 16 goals in the Spanish league, the fewest.
Lionel Messi's solo riposte came four minutes later, as he raced up the right flank, beating defender Welington and goalkeeper Idriss Kameni. Messi has scored in the last 13 games he has started. A minute later captain Carles Puyol doubled Barcelona's score when he headed a lob over Kameni from a corner kick.
Before the match, Messi presented the 55,000 fans at the Camp Nou his world player of the year trophies he has earned in the last four years.
Midfielder Diego Buonanotte shot just over Pinto's crossbar in injury time for Malaga's best first-half chance following its goal.
Malaga coach Manuel Pellegrini refreshed his attack in the 65th by sending in Roque Santa Cruz for Javier Saviola, who as a Barcelona player from 2001-07 scored 49 goals in 123 appearances for the Catalan team.
Malaga midfielder Sebastian Fernandez volleyed a powerful shot inside the penalty area that Pinto stopped one-handed in the 71st.
Ignacio "Nacho" Monreal was sent off on a straight red card for cutting down Pedro Rodriguez as he was charging goal-wards onside and in possession of a ball that Cesc Fabregas skillfully fed him.
Ignacio Camacho scored when he connected with a free kick by Sergio "Duda" Barbosa and beat Pinto to draw the score in the 90th, ending the host's seven-game winning streak.
Barcelona has won 27 matches, drawn two and lost two in all competitions this season.
Earlier, Unai Emery began his first match as coach of Sevilla with a 0-0 draw against Zaragoza also in a first-leg quarterfinal.
The match was evenly matched. The first chance went to Sevilla when striker Alvaro Negredo skillfully controlled an overhead pass and shot just wide in the 30th. Three minutes later Negredo tried to lob goalkeeper Leo Franco but the move was ruled offside.
Zaragoza's first chance came in the 35th but midfielder Antonio Galdeano shot over the crossbar.
Information from The Associated Press was used in this report.