Scotland rejected a potential move to Murrayfield Stadium and will continue playing their fixtures at Hampden Park after 2020 following an agreement to buy the stadium, the country's Football Association announced on Tuesday.
The Scottish FA, whose existing contract was due to run out in 2020, had the option of remaining at their spiritual home in Glasgow or lease the Murrayfield facility from Scottish Rugby.
The association said they will purchase the 52,000-capacity stadium from League Two side Queen's Park FC for £5 million, with Scottish businessman Willie Haughey pledging to pay half the amount.
"Today's announcement has been the conclusion of a four-year process to review our national stadium beyond 2020," Scottish FA President Alan McRae said.
"It was a hugely difficult decision and I would like to place on record our thanks to Scottish Rugby for their professionalism throughout the process.
"This decision is about what was best for Scottish football and our members. It's about the future of football in Scotland."
The seven-member Scottish FA board, which delayed a decision on the venue late in August, eventually chose Hampden, which has hosted the national team's matches since 1906 as well as major cup finals involving Scottish clubs.