The Scottish Football League will not suffer a second season without a sponsor after Irn Bru agreed a deal worth in excess of £3m.
Irn Bru will sponsor the SFL's three divisions
Bell's pulled out in 2005-2006, leaving First, Second and Third Division clubs without a chunk of income last term.
But SFL chief executive David Longmuir said: "I am proud and delighted to welcome one of Scotland's best-loved and most iconic brands to the family."
The soft drink is famous for the slogan "made in Scotland from girders".
"We will work closely with Irn Bru to promote and develop the game," said Longmuir, who had been working towards the deal before this, his first official week in the job.
He promised "a range of initiatives which will be innovative, exciting and unique".
It's a new beginning for the league and we are going to develop from here
SFL president Brown McMaster
The deal does not include the Challenge Cup, which takes in clubs outwith the Scottish Premier League.
"The Challenge Cup is also an important part of the mix and we will be looking at what we can do with that over the next couple of weeks," said Longmuir.
The SFL this summer survived a rebellion by some First Division clubs, who had talks with the SPL about breaking away to create a second division of the top tier.
They had criticised the SFL's running of the game and, in particular, for failing to find a replacement for Bell's.
President Brown McMaster believes the new sponsorship deal should end the drive by some clubs for an SPL2 once the clubs have a breakdown of the monies.
"I am absolutely delighted," said McMaster, who took over in his post from John Smith in May.
"We had no sponsor last year and now we have Barr's Irn Bru for three years.
"They don't have the details yet and there are still quite a lot of things to be thrashed out.
"But the deal is in place and it's a very big deal, the biggest ever from Barr's point of view and it's possibly the biggest deal from our point of view.
"I think it puts an end to it for the moment.
"These type of things - like Rangers and Celtic talking about going to England every so often on a quiet news day - crop up from time to time.
"I don't think it's a very live issue at the moment.
"The whole dispute has gone to arbitration with the SFA at the moment, so we will just let that run its course.
"We hope to have other deals. We still have to get somebody for the Challenge Cup and so it's not at an end.
"It's a new beginning for the league and we are going to develop from here.
"It's a good start to the new regime."