The automatic stay is a powerful tool. This page explains how it stops foreclosure instantly when filing bankruptcy.