In Montreuil, Fantine finds work in Madeleine’s factory. Fantine’s coworkers find out about Cosette, however, and Fantine is fired. The Thénardiers demand more money to support Cosette, and Fantine resorts to prostitution to make ends meet. One night, Javert, Montreuil’s police chief, arrests Fantine. She is to be sent to prison, but Madeleine intervenes. Fantine has fallen ill, and when she longs to see Cosette, Madeleine promises to send for her. First, however, he must contend with Javert, who has discovered Madeleine’s criminal past. Javert tells Madeleine that a man has been accused of being Jean Valjean, and Madeleine confesses his true identity. Javert shows up to arrest Valjean while Valjean is at Fantine’s bedside, and Fantine dies from the shock.