A supporters' group has been given the go-ahead to take control of troubled League One football club Portsmouth.
Accountants managing affairs since the club was placed into administration 14 months ago said a problem relating to the sale of the Fratton Park stadium had been solved - paving the way for the Pompey Supporters' Trust to complete a buyout.
Trust members said a club takeover by supporters was "ground-breaking" and bigger news for Portsmouth fans than an FA Cup win.
A High Court judge had been due to analyse issues relating to the sale of the ground at a hearing in London.
But lawyers told judge Mr Justice Peter Smith that an agreement had been reached between BDO - the firm acting as administrators - and the club's former owner.
The judge said he was pleased that an agreement had been reached and that Portsmouth - nicknamed Pompey - would be preserved. Fans who had travelled to the High Court from the south coast applauded and cheered when the hearing ended.
Trust director Mark Trapani - a Portsmouth car dealership boss - said the club would become Portsmouth Community Football Club Ltd.
"I think there will be clubs around the country that will look at what we have done and probably say 'this is the way forward'," he said.
"For me this is a greater day than the day Portsmouth won the FA Cup in 2008. That was one day. This is the future. The fans should see it like that too."
Trevor Birch, a BDO partner and a joint administrator of Portsmouth, said outside court: "We were appointed to secure the best deal for creditors and today's developments enable us to fulfil that obligation."