Blackburn Rovers have named former player Mark Hughes as their new boss.
Hughes will take his first step into Premiership management
Hughes, 40, was given permission by the Football Association of Wales to talk to Rovers and will be officially unveiled on Thursday at 1130 BST.
A statement said: "Blackburn announce that Mark Hughes has been appointed manager with immediate effect."
Wales boss Hughes will stay in charge of the national side for their World Cup qualifiers against England and Poland on 9 and 13 October.
Hughes' agent Dennis Roach told BBC Five Live that it was a difficult choice for his client to make, and that he was glad to be able to stay on for two matches with Wales.
"Everybody knows how much Mark loved the job but it's been four of five years now," said Roach.
"The nice thing is that he'll be covering the next two matches. That was important for him to go out in the right way.
MARK HUGHES PROFILE
Born: 01/11/1963, Wrexham
Playing career: Man Utd (1980-86), Barcelona (1986-88), Bayern Munich (loan, 1987-88), Man Utd (1988-95), Chelsea (1995-98), Southampton (1998-2000), Everton (2000), Blackburn (2000-2002). Wales (72 caps, 16 goals)
Management career: Wales (1999-2005)
"He feels that he's brought Wales on a long way and that it's now time for someone new to come in with a fresh face."
FAW general secretary David Collins had earlier said once Blackburn made the approach they had to let Hughes speak with them.
"There was an agreement that should a Premiership club make a request that we would consider it," said Collins.
Wales take on England in a World Cup qualifier at Old Trafford on 9 October and the Welsh FA is keen for Hughes to remain in charge for that game.
"At the moment, what we've agreed with Blackburn is that if they appoint him as their manager Mark would manage the Wales senior side against England and Poland on 9 and 13 October."
Hughes spent two years at Ewood Park under Graeme Souness, who left the club last week to join Newcastle.
Hughes would be expected to take coach Mark Bowen with him to Ewood Park.
The former Norwich and West Ham defender has only recently left Birmingham where he was Steve Bruce's first-team coach.