If a building is constructed on a mortgaged land after the creation of a mortgage, the mortgagee may auction the building together with the land; provided, however, that the right of priority of that mortgagee may be exercised solely against the proceeds of the land.
抵当権の設定後に抵当地に建物が築造されたときは、抵当権者は、土地とともにその建物を競売することができる。ただし、その優先権は、土地の代価についてのみ行使することができる。
The provisions of the preceding paragraph do not apply if the owner of that building has rights with respect to the possession of the mortgaged land that may be duly asserted against the mortgagee.
前項の規定は、その建物の所有者が抵当地を占有するについて抵当権者に対抗することができる権利を有する場合には、適用しない。
Read this with the articles around it
assert against
対抗
To be able to rely on a right, or on a fact about it, against someone who is not a party to it. Acquiring, losing or changing a right in rem (物権) in land or a building cannot be asserted against third parties until it is registered (登記) (Civil Code, Article 177), and a registered lease of land or a building can be asserted against a person who acquires a right in rem in it, such as a buyer, and against other third parties (Article 605). The Act on Land and Building Leases lets a tenant do without registering the lease itself: a right to use land for a building (借地権) can be asserted against third parties once the tenant owns a registered building on the land (Article 10, paragraph (1)), and a building lease takes effect against anyone who later acquires a right in rem in the building, such as a new owner, once the building has been handed over (Article 31). Some rules protect only a third party who did not know: a rescission for fraud cannot be asserted against a third party who did not know of the fraud and was not careless in not knowing (善意でかつ過失がない) (Civil Code, Article 96, paragraph (3)).
Written for this site using Civil Code, Arts. 96, 177, 605 and Act on Land and Building Leases, Arts. 10, 31 as a reference.