Malaga welcomed Getafe to La Rosaleda on Saturday looking to consolidate seventh spot in La Liga.
The home side led 1-0 at the interval courtesy of a close-range header from Juanmi.
Getafe responded early in the second period through Alvaro Vasquez, but Malaga regained the lead two minutes later following a stunning hit from Sergi Darder.
The hosts had a third after 68 minutes through Ricardo Horta, but Getafe cut the score to 3-2 with 15 minutes remaining when Vasquez completed his brace.
That proved the end of the scoring, however, as Malaga held on to claim all three points.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
MALAGA: Kameni; Rosales, Angeleri, Weligton, Boka; Darder, Camacho; Samu, Horta, Castillejo; Juanmi
GETAFE: Jona; Alexis, Velazquez, Naldo, Escudero; Rodriguez, Sarabia; Leon, Castro, Hinestroza; Alvaro