Alaves reached the King's Cup final for the first time in their 96-year history as Edgar Mendez's 83rd-minute strike saw off Celta Vigo 1-0 in the semi-final second leg on Wednesday to take the Basque side through 1-0 on aggregate.
Atletico Madrid put last week's painful defeat by Real Madrid behind them with a 3-0 win over Osasuna on Sunday that included two goals in the space of a minute and allowed them to return to the top four in La Liga.
Real Madrid lost 2-1 at home to Celta Vigo in their Spanish King's Cup quarter-final first leg on Wednesday to slump to their second defeat in a row following a record winning streak.
Barcelona's poor run away to Real Sociedad continued when the champions were held to a 1-1 draw at Anoeta on Sunday and slipped six points behind La Liga leaders Real Madrid before next week's 'Clasico' against their arch rivals.
Promoted Alaves dealt champions Barcelona a shock 2-1 defeat at the Nou Camp on Saturday while Cristiano Ronaldo returned from injury to help Real Madrid thrash Osasuna 5-2 and go two points clear at the top of La Liga. With Lionel Messi, Luis Suarez and Andres Iniesta on the bench, Barcelona went behind to the visitors in the 39th minute before Frenchman Jeremy Mathieu equalised in the 46th. Ibai Gomez then scored the winner in the 64th.
Real Madrid were dumped out of the Copa del Rey at the quarter-final stage on Thursday after losing 4-3 at home to Real Sociedad, while record 30-times winners Barcelona were sent crashing out of the Copa del Rey in a 1-0 defeat at Athletic Bilbao.
Atletico Madrid took advantage of Barcelona's slip-up to go top of La Liga with a 4-0 victory over Real Sociedad as Real Madrid drew 1-1 at Athletic Bilbao and Cristiano Ronaldo was sent off on Sunday.
Arsenal qualified for a 17th successive season with a nervy 1-0 win at home to Besiktas and Malmo made it for the first time with a 3-0 win over Salzburg, whose participation ended in the qualifiers for the ninth time in a row.
Pep Guardiola says Manchester City are not yet ready to compete with Europe's elite but his side will be confident of opening their Champions League campaign with victory over Borussia Moenchengladbach on Tuesday.