The present invention relates to new cephalosporanic acids and their derivatives and preparation thereof. More particularly, it relates to 7-dihaloalkanoylamido-3-heterocyclic-thiomethyl-3-cephem-4-carboxylic acids, their derivatives and their nontoxic pharmaceutically acceptable salts, which possess an antibacterial activity, process for preparation of the same and compositions thereof.