Real Madrid announced late on Monday night that their new coach will be Manuel Pellegrini. Real Madrid said on its official website that the 55-year-old Chilean had agreed to a two-year contract with the 31-time Spanish champions, and will be presented to the media on Tuesday.
Real did not reveal how much they have paid Villarreal - where Pellegrini was under contract until 2010.
Pellegrini has guided Villarreal to a fifth-placed finish this season. He took them into the Champions League twice in his five-year spell at the "Yellow Submarine", reaching the semifinals in 2006 and the quarter-finals this season, losing to Arsenal on both occasions.
Pellegrini will take over from Juande Ramos, who guided Real to second place this season, nine points behind all-conquering champions Barcelona.
Earlier on Monday, Florentino Perez assumed the presidency of Real, because none of the other candidates for the post had managed to give bank guarantees for 15 per cent of the club's budget, as the rules of the club stipulate.
Perez - who was president from 2000 to 2006 - announced that three former Real stars will be working with him: Jorge Valdano as general director, Miguel Pardeza as sporting director and Zinedine Zidane as special advisor to the president.
London mayor hails free trade, subway system during visit
Spain seeks time zone change
Chinese arts travel the world
It is lucky 13 for bullish Nadal
Nation expected to complete space station by 2023
Shanghai fest blooms with global arts
Xi calls for more APEC connectivity
Argentines fret as leader has brain operation
Beijing-Tokyo ties 'unlikely to recover soon'
Hong Kong, Shanghai among the elite
Typhoon kills 25 in Guangdong
China's Christian churches reduce leaders' age ceiling
Suspect taken into custody for online rumors
US trio wins Nobel chemistry prize
Smartphone shipments to soar
Shuttle bus makes time fly for Beijing commuters
US shooting leaves 13 dead
Xi offers support to overseas Chinese
Yao, NBA to open training school for teens
30,000 turn out in Beijing Marathon
Nature's light show 'once-in-a-lifetime' trip
Breast cancer on the rise in China
Rare rice stages a comeback in North China
Key economic indicators point to sound fundamentals, official says
Gunmen kill dozens of students in Nigeria
Kim presides over mass parade
Region urged to facilitate tourism
Jiangsu farmers feel the pinch as demand for crabs plummets
US debt ceiling crisis continues
Shared culture helps build bridges