If a third party that purchases the ownership or superficies of a mortgaged immovables pays the price of the same to a mortgagee at the request of the same mortgagee, that mortgage is terminated for the benefit of that third party.
抵当不動産について所有権又は地上権を買い受けた第三者が、抵当権者の請求に応じてその抵当権者にその代価を弁済したときは、抵当権は、その第三者のために消滅する。
Read this with the articles around it
superficies
地上権
A right to use another person's land in order to own buildings or other structures, or trees or bamboo, on it (Civil Code, Article 265). It can be entered in the land register (Real Property Registration Act, Article 3, item (ii)). The Act on Land and Building Leases counts a superficies held in order to own a building as a land leasehold right (借地権), just as it counts a lease of land for that purpose (Article 2, item (i)).
Written for this site using Civil Code, Art. 265, Real Property Registration Act, Art. 3 and Act on Land and Building Leases, Art. 2 as a reference.