The present invention relates to substituted imidazo-pyridinones and imidazo--pyridazinonesof general formula(see formula I)wherein R1 to R4 are defined as in claim 1, the tautomers, the stereoisomers,the mixtures thereof and the salts thereof, which have valuablepharmacological properties, particularly an inhibitory effect on the activityofthe enzyme dipeptidylpeptidase-IV (DPP-IV).