Pep Guardiola's side dominated possession but were out of sorts throughout the clash at the Coliseum Alfonso Perez, with full-back Juan Valera heading an unlikely winner for Getafe in the 67th minute.

Madrid earlier consolidated their place at the top of the table with a 4-1 victory over neighbours Atletico at the Bernabeu.

Adrian Lopez fired the visitors in front but the dismissal of goalkeeper Thibaut Courtois after 20 minutes turned the game on its head, with Cristiano Ronaldo scoring twice from the penalty spot while Angel Di Maria and Gonzalo Higuain also found the back of the net.

The late dismissal of Diego Godin further added to Atletico's misery as they finished the match with nine men.

Valencia tightened their grip on third place as they survived a late fightback to claim a 2-1 victory at Rayo Vallecano.

Jonas Goncalves started the scoring in the 7-0 romp over Genk in the Champions League on Wednesday and the Brazilian got the ball rolling again for Unai Emery's side with a fine strike from 25 yards after 20 minutes.

Diego Alves was forced into saves from Alejandro Arribas and Andrija Delibasic either side of the break to preserve the lead, but Tino Costa made sure of the points with a trademark finish at the end of a flowing Valencia counter-attack 10 minutes into the second half.

Substitute Raul Tamudo pulled one back for the hosts with four minutes remaining, but Valencia held on to stretch their advantage over fourth-placed Levante to four points.