Servicers foreclosing on homes in Lynn, Mass., are up against what some city officials call the toughest foreclosure protection ordinance in the state.

John O’Brien, register of deeds for the Massachusetts Southern Essex District, released a statement announcing the City of Lynn’s implementation of a local Homeowner Bill of Rights.

A new ordinance passed in the city forces lenders to comply with a pre-foreclosure mediation mandate and requires a $10,000 cash bond to be made at the start of each foreclosure.

In addition, the city ordinance stipulates that banks must allow former homeowners to pay a reasonable rent to stay in the home until a new owner-occupant acquires the property post-foreclosure.