If a lessor receives a security deposit (meaning money to be delivered by the lessee to the lessor under any name, for the purpose of securing an obligation to pay money that is owed by the lessee to the lessor based on a lease, such as an obligation to pay rent; the same applies in this Article below), the lessor must return to the lessee the amount that remains after deducting the amount of the obligation to pay money that is owed by the lessee to the lessor based on the lease, from the amount of security deposit received, in the following cases:
賃貸人は、敷金(いかなる名目によるかを問わず、賃料債務その他の賃貸借に基づいて生ずる賃借人の賃貸人に対する金銭の給付を目的とする債務を担保する目的で、賃借人が賃貸人に交付する金銭をいう。以下この条において同じ。)を受け取っている場合において、次に掲げるときは、賃借人に対し、その受け取った敷金の額から賃貸借に基づいて生じた賃借人の賃貸人に対する金銭の給付を目的とする債務の額を控除した残額を返還しなければならない。
if the lease is terminated, and the lessor receives the return of the leased thing; or
賃貸借が終了し、かつ、賃貸物の返還を受けたとき。
if the lessee assigns the lease lawfully.
賃借人が適法に賃借権を譲り渡したとき。
If the lessee fails to perform an obligation to pay money based on the lease, the lessor may appropriate the security deposit to the payment of the obligation. In such a case, the lessee may not demand that the lessor appropriate the security deposit to the payment of the obligation.
賃貸人は、賃借人が賃貸借に基づいて生じた金銭の給付を目的とする債務を履行しないときは、敷金をその債務の弁済に充てることができる。この場合において、賃借人は、賃貸人に対し、敷金をその債務の弁済に充てることを請求することができない。
Read this with the articles around it
lease
賃貸借
A contract in which one party, the lessor (賃貸人), agrees to let the other use a thing and take what it yields, and the other party, the lessee (賃借人), agrees to pay rent for it and to return it when the contract ends (Civil Code, Article 601). It ends when the thing can no longer be used at all, for example because it has been destroyed (Article 616-2), and where a lease is cancelled the cancellation takes effect only from then on (Article 620). For land held in order to own a building, and for buildings, the Act on Land and Building Leases sets special rules (特別の定め) on how long a lease lasts, how it is renewed and what effect it has, among other things (Article 1).
Written for this site using Civil Code, Arts. 601, 616-2, 620 and Act on Land and Building Leases, Art. 1 as a reference.
lessee
賃借人
The party to a lease (賃貸借) who uses a thing, such as land or a building, pays rent for it and must return it when the contract ends; in everyday words, the tenant (Civil Code, Article 601). The lessee needs the lessor's (賃貸人) consent to transfer the lease or to sublet the thing (Article 612, paragraph (1)).
Written for this site using Civil Code, Arts. 601, 612 as a reference.
lessor
賃貸人
The party to a lease (賃貸借) who lets the other party use a thing, such as land or a building, in return for rent; in everyday words, the landlord (Civil Code, Article 601). The lessee (賃借人) may not transfer the lease, or sublet the thing, without the lessor's consent, and where the lessee lets a third party use it without that consent, the lessor may cancel the contract (Article 612).
Written for this site using Civil Code, Arts. 601, 612 as a reference.
right of lease
賃借権
The right a lessee (賃借人) has under a lease (賃貸借): to use the leased thing and take what it yields, in return for paying rent (Civil Code, Article 601). The lessee may not transfer it, or sublet the thing, without the lessor's (賃貸人) consent (Article 612, paragraph (1)). A registered lease of land or a building can be asserted against a person who acquires a right in rem (物権) in the property, such as a buyer, and against other third parties (Article 605), and a right of lease can be registered (Real Property Registration Act, Article 3, item (viii)). The Act on Land and Building Leases also protects a tenant who has not registered the lease: 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 once the building has been handed over (Article 31).
Written for this site using Civil Code, Arts. 601, 605, 612, Real Property Registration Act, Art. 3 and Act on Land and Building Leases, Arts. 10, 31 as a reference.