If the bank does foreclose, that will terminate the lease, since foreclosure cuts off the owner's right to grant or provide possession of the premises.However, if  the property has not been foreclosed on, but you are being asked to pay the rent either directly to the bank or to a rent receiver, pursuant to a court order, your lease is still in effect--the property owner is still the owner and still can grant possession, even if someone else has a claim on the revenue or proceeds from the lease. You will still be leasing, and will still be paying rent--you'll just be paying to whomever the court has designated.If there is no court order requiring you to pay to the bank or rent receiver, then keep paying to your landlord or its property manager (whomever you were paying)--it takes a court order to change whom you pay.