The invention relates to the use of a polyamide produced from at least one diamine and at least one dicarboxylic acid in a formulation for defoaming aqeuous media. The invention also relates to antifoaming agents for aqueous media, containing such a polyamide.