ergothioneine biosynthesis. {ECO:0000305|PubMed:20420449}.