Pablo Sarabia opened the scoring for the hosts in the first half before Alvaro Vazquez netted in the second to give Getafe all three points, despite a late consolation goal from Anaitz Arbilla for Espanyol.
Getafe went in front just after the half-hour mark when Alexis found space down the right and whipped in a cross for Sarabia to tap home from close range with his left foot.
The home side doubled their lead on 57 minutes when Sarabia turned provider as he laid the ball for Vazquez to blast it into the top right corner from the edge of the box.
Arbilla pulled one back for Espanyol a minute from time as he found the top left corner with a cracking strike from the edge of the area but it was too little too late for the visitors.
The win lifts Getafe seven points above the drop zone into 11th in the table while Espanyol remain on 29 points in eighth position as their hopes of gaining a Europa League spot took a hit.??