Former Wales manager John Toshack has been appointed manager of FYR Macedonia.
The 62-year-old had been out of work since resigning from his position with Wales after the 1-0 Euro 2012 qualifier defeat in Montenegro in September 2010.
Macedonia, who sacked manager Mirsad Jonuz in June after a string of poor results, face Wales and Scotland in the 2014 World Cup qualifiers.
Toshack's first game in charge will be against Russia on 2 September.
That match will be a Euro 2012 qualifier in the Luzhniki Stadium in Moscow. Toshack's first home match will be against Andorra four days later.
He told the Football Federation of Macedonia (FFM) website: "I am so honoured that the FFM chose me as coach of the Macedonia national team.
"I hope that together we can achieve success at international level."
RRF president Harry Hadzi-Risteski, who led talks with Toshack, said: "I must say that the talks were extremely constructive and above all there was a wonderful atmosphere.
"Mr Toshack expressed a great desire to lead our national team for us, not only as a federation but as a humble nation.
"John Toshack accepted the conditions offered and agreed to lead our squad in the qualifying campaign for the 2014 World Cup in Brazil."
Macedonia, who are ranked 96th in Fifa's world rankings, have managed just one victory and a draw from their six games in the campaign so far.
Interim manager Boban Babunski will be in charge of the friendly against Azerbaijan on 10 August.
Toshack, whose career highlights as manager include winning the Spanish title with Real Madrid in 1990 and guiding Swansea City from the Fourth Division to the First Division, stood down as Wales manager after a run of disappointing results.
He took over the reins during a period of transition as many of Wales' established internationals chose to retire from international football.
The former Liverpool striker guided Wales to 10 competitive wins in 29 qualifiers - losing 16 - since his first game in March 2005, but failed to claim the scalp of a major footballing nation.
The most notable result of his second tenure in charge as Wales manager was a goalless draw in their final Euro 2008 qualifier in Frankfurt in November 2007 against eventual tournament runners-up Germany.