Neil Warnock has been appointed Crystal Palace's new manager, the club have announced.
The 65-year-old has signed a two-year deal to return to Selhurst Park, where he managed between 2007 and 2010, as Tony Pulis' replacement.
Warnock, who has not managed since leaving Leeds in 2013, beat former West Brom head coach Steve Clarke to the job after the pair became the front runners to replace Pulis this week.
A Palace statement read: "Crystal Palace are delighted to announce that Neil Warnock has been appointed as their new first team manager with immediate effect.
"Neil has agreed a two-year deal and will lead the team this Saturday in our Premier League game at Newcastle United."
Warnock left Palace for QPR in 2010 after two-and-a-half years in charge and helped them to the Championship play-offs in 2008, where they were beaten in the semi-finals by Bristol City.
After the Eagles went into administration he joined QPR and guided them to a place in the Premier League for the first time in 15 years in 2011.
Warnock was sacked in 2012 before joining Leeds but lasted just over a year at Elland Road, leaving in April 2013.
In March he rejected the chance to take over at Nottingham Forest, while earlier this month he also distanced himself from reports linking him to the Huddersfield job.
Palace had been linked with a series of replacements for Pulis including Glenn Hoddle and Tim Sherwood.
Malky Mackay was expected to be appointed before offensive text messages he sent while manager of Cardiff were made public.
Keith Millen had been in caretaker charge after Pulis' exit, with Palace losing their opening two league games to Arsenal and West Ham.
The club want to keep Millen on the backroom staff with the 47-year-old having been appointed as assistant manager under Ian Holloway in 2012.
He oversaw Tuesday's 3-0 win at Walsall in the Capital One Cup second round, which saw Dwight Gayle score a first-half hat-trick.
After the trip to Newcastle, Palace host Burnley on September 13 in Warnock's first home game back, before going to Everton and welcoming Leicester later next month.