Most real estate contracts have contingencies for mortgages and inspections. If you don’t obtain your mortgage within the contingency period and you notify your seller in time, you will get your deposit back. It’s important to work with an experienced real estate attorney to be sure you don’t miss any of your dates.