A Cristiano Ronaldo hat trick fired Real Madrid to a 4-1 derby win at Atletico Madrid Wednesday to restore its four-point cushion over Barcelona at the top of the Primera Liga. Ronaldo opened after 25 minutes with Falcao getting the equalizer for Atletico after 55 minutes before the Portuguese star wrapped up his hat trick to make it 40 league goals for the season, one more than Lionel Messi. That matched Ronaldo's own Spanish league record of goals. Jose Callejon got the other goal for the leader. Barcelona had moved to within a point of Real Tuesday after a 4-0 win over Getafe, with six games now left including a meeting between the top two on April 21. Jose Mourinho's assistant Aitor Karanka faced the press afterwards and credited the whole team on the winning performance. The game started off at a fast pace with both teams keen to attack and it was Atletico, looking for its first derby win since 1999, which enjoyed the better early chances. Brazilian playmaker Diego supplied Falcao whose shot was parried away by Iker Casillas in the Real goal on nine minutes and 10 minutes later the Colombian was millimeters from connecting at close range to a Gabi Fernandez free-kick. Real was struggling to make any impact when in the 25th minute Ronaldo stepped up to hit a free-kick from around 30 yards. Thibaut Courtois in the Atletico goal did not react at all to the bending, dipping shot and could only watch as it nestled in the corner of his net. Karim Benzema then narrowly headed wide a Angel di Maria cross on 32 minutes but it was Real Madrid which went into the half-time break the stronger team. Within 10 minutes of the restart, however, Atletico was level when Falcao evaded Sergio Ramos and Fabio Coentrao to powerfully head home an Adrian cross. Ronaldo put Real back in control on 68 minutes with another swerving shot, this time from the left hand corner of the area, that again left Courtois helpless. Falcao headed high a Juanfran cross and Adrian burst through Real's defense to be denied by a last minute block as Atletico pushed to level the game a second time. As the home team pushed forward the gaps appeared and Gonzalo Higuain won a penalty that Ronaldo converted before Callejon added the fourth with three minutes remaining. Earlier Valencia temporarily moved back into third position above Malaga with a comfortable 4-1 win over Rayo Vallecano. Levante missed the chance to also move ahead of Malaga after a 3-2 defeat to struggling Sporting Gijon in a pulsating clash.