The future king moved to protect the vast riches he will inherit should his fairytale marriage to Hobart-born Mary Donaldson end.
Royal attorneys filed a pre-nuptial agreement, signed by both Prince Frederik and the now Princess Mary, minutes before the registry closed at noon on Friday.
The agreement, called a settlement in Denmark, was lodged so late the court has yet to stamp it, but the document was still valid because it had been recorded in the register.
Had Prince Frederik failed to lodge the settlement, he would have been liable if the couple divorced to hand over half the “kingdom” to his bride under Danish law, which stipulates an even split of assets.
The Queen has given him a palatial 4700sq m wing of Amalienborg Castle in Copenhagen plus the vast Kansilli House, part of the sprawling Fredensborg Castle, 40km north of the capital.
Using this benchmark, Prince Frederik’s lodgings are worth more than $25 million.
.