Try to find out from the bank when the foreclosure proceedings are scheduled, and when a foreclosure sale might occur. As CA LL indicates, if you are so inclined and the property reverts to the bank, they may be willing to sell you the property. But that's somewhat peripheral to the central issue, which is that the foreclosure will terminate your tenancy and your obligation to pay rent to your current landlord. I don't know how quickly the bank or buyer might move to take possession of the premises, but during that time you should not pay any rent to the original (former) landlord. This article describes that buyers who wish to evict a tenant after foreclosure will usually serve a thirty day notice to quit. The buyer's acceptance of rent from you will create a new periodic tenancy.