Real Madrid leaders have moved on to a La Liga title victory after surviving a fear against Granada.
French defender Ferland Mendy opened the scoring with a fierce final from a tight angle before compatriot Karim Benzema doubled his lead.
But Real were forced to endure a second nervous period after Darwin Machis shot through the legs of Thibaut Courtois.
Zinedine Zidane’s team is four points ahead of its closest rival, Barcelona, with two games left.
Given Real’s head-to-head record against Barça, Real need two points in their last two games at home against Villarreal, fifth, on Thursday and against Leganes, threatened with relegation, on Sunday, to win the league.
“We have to be happy and rest for Thursday,” said Real Zidane’s boss after his team’s ninth straight victory since the La Liga took over in June.
“We will be back in training on Tuesday and we will be back on the field on Thursday. The last few minutes have been difficult. Granada made us defend a lot in the second half. ”
Gareth Bale was once again an unused substitute as Real Madrid scored twice in six minutes of the first half before the hosts responded.
Skipper Sergio Ramos made a crucial clearance off the line to refuse Ramon Azeez a spectacular equalizer in the final stages.
Welsh striker Bale, who has played at Real since 2013, has only played 12 La Liga games this season.
He has not played since his replacement in the 2-0 win over Mallorca on June 24.