(CNN) -- Real Madrid and Barcelona maintained their perfect starts to the Spanish season with comfortable fifth round victories on Saturday.
Ibrahomovic thanks Messi for his assist for his opening goal in Malaga.
Real, who top the standings on goal difference, beat promoted Tenerife 3-0 while reigning champions Barcelona won 2-0 at Malaga.
Big spending Real saw another of their summer signings excel in the Bernebeu with French international striker Karim Benzema grabbing a second half double.
He was on target twice inside 11 minutes before Brazilian superstar Kaka added a third to wrap up a comfortable victory after an indifferent first half display.
European champions Barcelona later joined their arch rivals on the maximum 15 points as Zlatan Ibrahimovic scored for the fifth straight game.
The Swedish international had been a doubt before the game after turning his ankle in the 4-1 midweek win over Racing Santander, but came off the substitutes bench in the first half for the injured Thierry Henry.
In the 39 minute, Ibrahimovic received a lofted through ball from Lionel Messi and controlled neatly before scoring the opener.
Central defender Gerard Pique notched his second goal of the season on 58 minutes as he converted Xavi's fine cross.
Malaga substitute Albert Luque was sent off near the end to complete a frustrating afternoon for the home side.
In other matches, Sevilla stayed in touch, three points back in third with a convincing 4-0 win over Athletic Bilbao.
Three first half goals from Renato, Alvaro Negredo and Frederic Kanoute on the stroke of half-time put them on their way to a fine victory.
Saturday's late game saw Valencia host Atletico Madrid at the Mestalla Stadium.