S-hydroxymethylmycothiol is believed to form spontaneously from formaldehyde and mycothiol. This enzyme oxidizes the product of this spontaneous reaction to S-formylmycothiol, in a reaction that is analogous to EC 1.1.1.284, S-(hydroxymethyl)glutathione dehydrogenase.