If you have had a bankruptcy or foreclosure in the past, it may affect your ability to get a new mortgage. Unless the bankruptcy or foreclosure was caused by situations beyond your control, we generally require 2-3 years to pass after the bankruptcy or foreclosure. It is also important that you have re-established an acceptable credit history with new loans or credit cards.