BARCELONA, Spain (AP) --Valencia was assured of a top-four finish in the Spanish league and a berth in next season's Champions League after Real Betis lost at Athletic Bilbao 2-0 on Saturday.
The defeat left fifth-place Betis eight points behind Valencia in fourth with two games left for the Seville-based club.
Iker Munian headed in a cross from Inigo Lekeu for Bilbao's opener in the 76th minute, and Aritz Aduriz scored from a pass by Inaki Williams in stoppage time.
Betis hit the crossbar twice when pressing for a late equalizer before Aduriz scored on the final kick of the match.
Valencia played later Saturday knowing its mission was accomplished, and lost at regional rival Villarreal 1-0.
Mario Gaspar headed in Villarreal's winner with four minutes left.
Valencia finished in 12th place the last two seasons, but rebounded under manager Marcelino Garcia Toral in this campaign.
"We have had a great season thanks to everyone, from the coaches to the staff, which made good signings," Valencia midfielder Dani Parejo said. "Thanks to everyone, Valencia is back to where it should be."
Champion Barcelona, Atletico Madrid and Real Madrid are also heading back to the Champions League next season.
Villarreal's victory kept it on pace for a Europa League berth.
Eibar rolled past Girona 4-1 in the first match since Jose Luis Mendilibar agreed to stay on another season at the Basque Country club. Striker Enrique Garcia struck Eibar's opening two goals.
Lucas Perez scored in stoppage time to give the already-relegated Deportivo La Coruna a 1-1 draw at Celta Vigo in the regional derby for northwestern Galicia.
On Sunday, Barcelona hosts Madrid in the clasico.