The invention is concerned with novel substituted N-acyl-2-aminothiazoles of the formula (I) wherein R, Ri and X are as defined in the specification and claims, as well as pharmaceutically acceptable salts thereof. These compounds are useful in the treatment of diabetes, diabetic retinopathy, asthma and diarrhea.