The Scottish Football Association have confirmed Scotland are to play Brazil in a friendly at Arsenal's Emirates Stadium on March 27.
Scotland last met Brazil at the 1998 World Cup, the last time they qualified for a major tournament.
The match will kick off at 2pm and will complete a week which will see Scotland convene for a five-day training camp at La Manga resort in Spain.
Scotland beat Northern Ireland 3-0 in the Carling Nations Cup in Dublin last week and are in confident mood ahead of the match with the five-time world champions.
Scotland boss Craig Levein said: "This game will not only capture the imagination of the Scotland support but also the squad, who will relish the prospect of testing their skills against one of the finest international teams in world football.
"I believe the recent performances - and not simply the results - against the Faroe Islands and Northern Ireland have given the whole country a lot of encouragement for the second half of the Euro 2012 qualification campaign and beyond.
"The players have a confidence in the way forward and while I believe the most important aspect of the forthcoming international break is to further cultivate a club Scotland culture within the squad, the opportunity to play Brazil was irresistible."
It will be the first time Scotland have played in London since the 1-0 Euro 2000 qualification play-off win at Wembley in 1999, although that result was not enough to progress to the finals.