A cephalosporin derivative of the formula I: ##STR1## in which X is ##STR2## represents one of C-7 acyl groups known in the cephalosporin art, R3 is hydrogen or methoxy, R4 is hydrogen, optionally substituted alkyl or allyl, and R5 is an aromatic heterocyclic ring system which is linked via carbon, and which contains a quaternized nitrogen atom.