Wilfre is responsible. After Mari runs off — too distraught to see herself as mayor — the Mayor spots someone moving near the forest gate and assumes it's her. It's actually Wilfre, who steps out, steals the Book of Life, and leaves the Mayor in shock.
The Mayor never recovers and dies some time later. Dr. Cure, ever helpful, announces there's nothing she can do.