Villarreal 4 Real Madrid 4 - Highlights
Sorloth scores four as Villarreal and Real Madrid have a eight goal thriller
With Real Madrid gearing up for the Champions League final on June 1, Carlo Ancelotti picked a side filled with reserves.
Turkish teenager Arda Guler put Madrid ahead and Joselu headed home the second after half an hour.
Villarreal hitman Sorloth pulled one back for the hosts but Madrid immediately restored their lead.
Lucas Vazquez added the third before Guler, 19, struck again with his sixth goal in seven games.
Sorloth headed in his second soon after half-time and swiftly completed his hat-trick.
The Norwegian striker put the finishing touch on a sublime team move to level with his fourth, and reach 23 goals for the season, making him the top scorer going into the final week.
"We did what we had to do, played with intensity to prepare ourselves for the last match of the season," said Madrid coach Ancelotti.
"I'm not worried (about the goals conceded), it was a very open game, with little balance, we played attacking football, maybe we let in more than we needed.
"It doesn't change anything -- the (Champions League) final does not have to be like this."