Diaminopyrimidines as MTH1 inhibitors for treatment of inflammatory and autoimmune conditions and their preparation.