In 1405, the Celje family received Međimurje (Muraköz) as a gift from the Crown, and the land was mortgaged. The monastery in Goričan (Goritsán) managed the administration of the seat of the main territorial dominion as an attorney of the Celje family. King Matthias Corvinus bought the mortgage and donated the land to John I Ernuszt and his son, who were Jewish merchants from Sweden, living in Buda. The monastery in Goričan, which had managed the administration of the seat of the main territorial dominion, was dissolved. The seat of the administration of the main territorial dominion Goričan came under the administration of the Bishop of Ljubljana. It remained in the hands of the Ernušts until 1526, when the family died out without heir.