A new, simple and efficient procedure for the preparation of secondary amides through internal condensation of acylmethanesulfonamides ammonium salts is described. The selective acylation of mixed primary–secondary amines could be an attractive application of the new method.