The chemical reactions and pathways resulting in the formation of a cephalosporin, any of large class of tetracyclic triterpene broad-spectrum antibiotics similar both chemically and in their mode of action to penicillin, first isolated from the cult.