Derek Adams has been appointed Ross County manager for a third time hours after leaving Morecambe.
The 48-year-old returns nine years after he last left the Scottish Premiership club.
Adams has been in charge of Morecambe since February 2022 and leaves them ninth in England's League Two after their relegation last term.
He replaces Malky Mackay, who was sacked last week with his side sitting second bottom of the the top flight.
County have gone eight games without a win, having only avoided the drop last season in a play-off final shootout.Adams exit a blow for MorecambeQuestions for County after Mackay fails to find answersVisit our Ross County page for all the latest news, analysis and fan views
Adams inherits a team sitting above only Livingston on goal difference after two wins from their opening 12 games of the new campaign.
County, who have not revealed the length of contract, say their "backroom staff will all remain at the club in their respective roles".
Chief executive Steven Ferguson stressed that Adams "returns following a successful period in England and has led over 700 games as a manager across his career".
"He knows the Highlands and our club well; we look forward to seeing him build on the solid foundations laid by Malky and his staff over the last two years and believe that Derek inherits a talented playing squad that are capable of being successful in the SPFL," he said in a club statement.
Confirming his departure, Morecambe said Adams did "an excellent job in challenging circumstances" during his second stint with the club.
A statement explained that the board wished to keep him, but a contractual release clause was met.
Adams first left Dingwall in November 2010 - after leading the then second-tier side to the Scottish Cup final that year - to become assistant to Colin Calderwood at Hibernian.
He returned to County just seven months later, though, leading them to promotion to the top flight before leaving in August 2014.
Since then, he has had spells at Plymouth Argyle, Morecambe and Bradford City, before agreeing to take charge at the Lancashire club for a second time in February 2022.
Will Adams' return be good for County?
If the form doesn't load properly, go straight to it here...
Our coverage of Ross County is bigger and better than ever before - here's everything you need to know to make sure you never miss a momentEverything Ross County - go straight to all the best content