Real Betis have announced the appointment of Rubi as new coach.
Betis have paid the release clause in his contract at Espanyol.
The 49-year-old opted to leave the Catalan club, where he managed a seventh-place finish in LaLiga Santander and a spot in the Europa League qualifying rounds.
Rubi has previously coached in the top flight of Spanish football with Sporting Gijon and Levante.
Before joining Espanyol, he guided Huesca to LaLiga Santander in his only season in charge.