The present invention relates to substituted pterin compounds, their synthesis and use. In particular, the present invention relates to a new precursor compound and its analogs for synthesizing a new substituted pterin compound and its analogs. These new compounds are particularly suitable for treating molybdenum cofactor deficiency.