Novel substituted carboxylic acid derivatives, especially quinolinecarboxylic acid derivatives, represented by the general formulas <CHEM> or <CHEM> as well as pharmaceutically acceptable acid addition salts thereof, all having antibacterial activity.