Five- and six-memberedlactams were synthesized via a 4-center 3-component Ugi reaction by combining amines, isocyanides, and ketoacids under solvent-free microwave conditions. The reaction was carried out in much shorter times and the yields were improved in comparison to classical conditions.