A lender might be able to complete a foreclosure within a few months, unless the homeowner has a solid defense. In that situation, the process might extend for a year or longer. If a court dismisses the foreclosure without prejudice, the timeline would start from the beginning if the lender pursues a foreclosure again.