La Liga side, Real Betis have appointed former West Ham and Manchester City boss Manuel Pellegrini as their manager for next season.
Pellegrini, who has also managed Real Madrid, Villareal and Malaga in the Spanish top flight, was sacked by the Hammers in December.
The 66-year-old Chilean’s deal with Betis runs until June 2023.
Pellegrini won the 2013-14 Premier League title and two EFL Cups during his three years at Manchester City.
“Real Betis have appointed a coach of a high level and big international prestige to elevate the performance of the first team in a three-year project,” said a statement on the Seville club’s website.
He will succeed Rubi, who was dismissed on 21 June after a defeat by Athletic Bilbao.
Sports director Alexis Trujillo will be in charge for the rest of this season.