Getafe hosted Levante on 34 points in a direct relegation battle and took an early lead through Aleñá in the 12th minute.
Melero equalised in the 29th minute and the match got bogged down until the final stretch.
The resolution came in the 83rd minute with Kubo, who had come off the bench and made it 2-1 a minute before being booked.
The ending was tense: in the 90th minute, Timor was sent off. Arambarri, David Soria, Cucho Hernández and Juan Iglesias were booked.
Cordero Vega was the referee. The victory takes Getafe to 37 points and is the club's 200th in LaLiga. Mata also reached 100 appearances in the category, all of them with Getafe.


