The 10 men of Malaga came from an early goal down to beat Las Palmas 2-1 in their La Liga clash at La Rosaleda on Monday.
Los Amarillos were looking to snap a two-match winning streak in the league and they got off to a promising start when Mauricio Lemos opened the scoring in the 19th minute.
But first-half replies from Pablo Fornals and Charles swung the encounter in Los Boquerones' favour, although they had to see out the final 20 minutes with just 10 men following the dismissal of Jose Rodriguez for a second yellow card.
After Ignacio Camacho fired over from distance on seven minutes, Gonzalo Castro had a more meaningful attempt as he forced Javi Varas into the first save of the game five minutes later.
Alen Halilovic then threatened at the other end soon afterwards with a shot from inside the box that was comfortable for Carlos Kameni, who was then beaten on 19 minutes by Lemos' free-kick which found the bottom-right corner of the net.
— Málaga CF English (@MalagaCF_en) February 20, 2017
However, the hosts were back on level terms just eight minutes later as Fornals buried his shot into the top-left corner from inside the area on the right.
David Simon went close to restoring the visitors' lead on 35 minutes with a header from Jonathan Viera's cross that was kept out by Kameni, and it proved an important save as Marcelo Romero's side went up the pitch to score at the other end.
It was a simple finish for Charles, who netted from close range after being set up by Keko's pass.
Martin Demichelis was inches away from extending Malaga's lead midway through the second half with a header from Castro's free-kick that struck the crossbar.
The visitors from the Canary Islands were given hope of salvaging something from the contest when Rodriguez picked up his second booking to be sent off, leaving the home team to play the remaining 20 minutes with a man down.
But the closest they came to an equaliser was when Kevin-Prince Boateng connected with Viera's cross, but Kameni kept out his 75th-minute header, while Lemos and Jese failed to take their chances in the closing stages.