The Portuguese forward returned from injury with a goal, with the Welsh winger on target too. However, Los Blancos were less convincing at the back
With their La Liga season out of the way, Real Madrid can now focus all their energies on next Saturday's Champions League final against Liverpool in Kiev.
Barcelona were crowned champions of the Primera Division late last month and since then, the domestic campaign has been almost an unwanted distraction for Los Blancos. However, it has been useful for coach Zinedine Zidane to try out players and Sunday's trip to Villarreal was the last such opportunity ahead of next weekend's European showpiece.