A spectacular strike from Luka Modric secured a vital 2-1 victory for Real Madrid away to Granada in La Liga on Sunday.

Zinedine Zidane's side went into the match with a seven-point deficit to Liga leader Barcelona, and was unable to recapture the form which saw it fire six past Espanyol a week ago.

Karim Benzema put Madrid ahead after half an hour but Granada, which had a goal disallowed for offside in either half, deservedly leveled the match through substitute Youssef El-Arabi, though the visiting side was frustrated at some accidental interference on Modric from referee Jesus Gil Manzano.

David Lomban saw a header ruled out for offside as the home side, which began the match two points from safety in 19th, continued to cause real problems for a Madrid outfit that looked well short of the standards it has hit under Zidane in recent weeks.

Yet Modric turned hero for his side as he rifled in from distance with five minutes to play to move Madrid back to within four points of Barca, which earlier beat Levante 2-0 and has played one game fewer.

Granada impressed in its narrow defeat at the Santiago Bernabeu earlier this season and enjoyed a bright start, with Adalberto Penaranda denied by the offside flag after drilling home at the near post with Keylor Navas caught out of position outside the area.

Cristiano Ronaldo flashed a shot just wide of the far post after being picked out by a fine James Rodriguez pass as Madrid offered a glimpse of its threat in behind the Granada line, and it exploited it to clinical effect on 30 minutes as Benzema opened the scoring.

Dani Carvajal was picked out in acres of space to the right of the area by Isco's pass, and his cut-back was tapped home by Benzema from just six yards out.

Andres Fernandez was on hand in the 56th minute to keep Granada alive in the match, making a superb one-handed save low to his right to deny Benzema after Modric's pass had split the home defense, and it found itself on level terms just three minutes later.

Modric lost possession in midfield after being impeded by the referee, allowing Ruben Rochina to slide the ball through to El-Arabi, who - having only been on the pitch for two minutes - slotted the ball through the legs of the onrushing Navas and in, despite the best efforts of Carvajal.

Granada thought it had taken the lead when Lomban headed into the bottom corner, though El-Arabi was flagged for offside after attempting to flick the ball home, and Isaac Success had penalty appeals waved away after being brought down by Navas, though replays showed the goalkeeper clearly played the ball first.

The home side looked set for a vital point until Modric collected Mateo Kovacic's pass and blasted an unstoppable shot into the top-left corner from 25 yards to send the visiting dugout into raptures.