Moyes was the Spanish side’s top target after previous coach Jagoba Arrasate was sacked earlier this month, but negotiations dragged on over the weekend and former Betis boss Pepe Mel was waiting in the wings to take over if a deal for the Scot fell through.
Real Sociedad had said that a successor to Arrasate would be named on Monday, however, and the Basque outfit confirmed the 51-year-old’s appointment on their website.
“Real Sociedad have reached an agreement with David Moyes to be the club’s first-team coach until June 30, 2016,” a short statement read. The club added that details of the Scot’s unveiling as coach and the names of his backroom staff would be revealed on Tuesday.
Moyes, whose turbulent 10-month spell at Manchester United came to an end in April, becomes the highest-paid coach in the club’s history with wages of around €2m per year.
Real beat champions Atletico Madrid 2-1 on Sunday to move out of the relegation zone and are currently 15th in La Liga, with just nine points from their opening 11 games.