Substituted 2-pyridones and pyrazinones of formula 1and their use as inhibitors of neutrophil elastase activity, pharmaceutical compositions containing the same, and methods of using the same as agents for treatment and/or prevention of pulmonary, gastrointestinal and genitourinary diseases, inflammatory diseases of the skin and the eye and other auto-immune and allergic disorders, allograft rejection and oncological diseases.