The mandatory soft story retrofit ordinance in San Francisco requires that buildings with soft or weak first stories be retrofitted to improve their earthquake resistance. The ordinance applies to both residential and commercial buildings.