Former Dundee United manager Craig Levein has been confirmed as the new Scotland national coach by the Scottish Football Association.
Levein, 45: "As a proud Scotland fan, it is a dream come true to take charge of the national team.
"I very much enjoyed my time at Dundee United, and would like to thank the players, backroom staff, supporters, directors and chairman."
SFA chief executive Gordon Smith said Levein was their unanimous choice.
Levein, who begins his role with immediate effect, added: "I felt that this was an opportunity that I couldn't pass up.
"I was delighted to put pen to paper today, and now I can't wait to get started, as we prepare for the Euro 2012 qualifying campaign."
After three years at Tannadice where he improved the fortunes of the Tayside club, Levein was immediately the frontrunner when George Burley was sacked following a 3-0 friendly defeat in Wales.
Smith continued: "Craig brings a wealth of experience as a player - including 16 international caps for Scotland - and as a coach.
"He has established a firm reputation as one of the most respected managers in the country and has already expressed his excitement at leading Scotland into the qualification campaign for Euro 2012 and beyond.
"I am sure the players, the Scotland supporters and media will share his ambitions and I urge the whole country to get behind the new manager in the collective aim to return to a major championship finals."
It is believed Levein and the SFA have settled on a two-and-a-half-year deal, taking him up to the finals of the 2012 European Championship in Poland and Ukraine.
George Peat, the SFA president, spoke of his delight at securing a new manager ahead of schedule, with the draw for Euro 2012 being staged in Warsaw on 7 February.
And he added: "Craig has already demonstrated his ambition to succeed with Scotland by leaving a coveted position as both manager and director of football at Dundee United.
"I am delighted we have managed to conclude the recruitment process successfully."
The Dundee United chairman Stephen Thompson had last week reluctantly given the SFA permission to speak to Levein and it is believed it will have to pay around £250,000 in compensation for prising him from the club.
Levein's assistant at United, Peter Houston, will take charge of United for their home match against Kilmarnock on Boxing Day.
With there being no full-time assistant's role at Hampden, it is unclear whether Houston will later join Levein.
Levein's management career began at Scottish Football League club Cowdenbeath in 1997 and, three years later, he moved to Hearts, the team with which he had starred as a central defender.
His next move was to Championship side Leicester City in 2004, but that move turned sour and he was sacked in January 2006.
Now, having found his managerial feet again and having impressed with Raith and United, he is the man entrusted to guide Scotland to their first finals of a major tournament since the World Cup in France 11 years ago.
In short form, Burley was sacked after Wales defeated Scotland 3-0 and Levein says his main aim is for Scotland to qualify for Euro 2012