Maryland foreclosure law has changed substantially over the years, with a greater number of protections favoring the borrower. State and federal laws prevent lenders from surprising homeowners of their foreclosure, as well as actions that may be forceful or extreme. Lenders must follow laws to ensure that a homeowner is aware of the reason for foreclosure and what they may do to avoid it.