Yes, it will remain on your credit report for four years. But a foreclosure remains on your credit report for even longer: seven years.