Real Madrid lost for the first time this season as they were beaten by Rayo Vallecano.
Santi Comesana put Rayo in front but Luka Modric's penalty and Eder Militao's headbutt gave Real the lead and they went on to win the game.
Oscar had a second-half penalty saved by Thibaut Courtois who came off his line too early.
Second time around, Trejo claimed victory for Rayo.
Barcelona are two points clear at the top of the table despite their 2-0 win at Almeria on Saturday.
Rayo moved up to eighth and is now two points outside the European places.
A thrilling encounter featured 31 efforts at goal, though Real only managed 2 shots on target, with one particularly wild effort from Federico Valverde sailing out of the stadium and into the balcony of a nearby apartment
There were nine bookings and a red card for Rayo manager Andoni Iraola, who was dismissed for improper conduct after a number of rants at the referee.
We all know how they play. Carlo Ancelotti said that they were better and more precise than Real.
We didn't lose many challenges. They were not easy to understand. If your competitors have more intensity than you, it doesn't matter if you have more quality.
The team has had an exhausting schedule ahead of the World Cup.