Lionel Messi featured in the second half as a substitute in a game which saw Barcelona eventually overcome a resilient Mallorca side by a goal to nil.
Mallorca, one of La Liga's best performing sides this year, proved stubborn defensively and also dangerous in attack as they caused Barcelona problems all night.
Barcelona, ahead of Wednesday's crucial Champions League game against Arsenal, rested several players, the likes of Xavi and Lionel Messi starting from the bench.
The deadlock was broken in the 63rd minute. Xavi, who came on alongside Messi for the second half, whipped in a dangerous corner which was stabbed towards goal by Puyol. His effort was saved, but Ibrahimovic was at the far post to rifle home the rebound.
It was a decent half from Messi who showed some nice touches, but certainly not one of his most memorable games. It was another important three points for Barcelona who now return to the top of La Liga until Real Madrid battle Atletico Madrid in tomorrow's derby.