Sulfonyl halide groups occur when a sulfonyl functional group is singly bonded to a halogen atom. They have the general formula R−SO−X where X is a halide, usually chloride or fluoride. Chlorides are produced by chlorination of sulfonic acids using thionyl chloride. Sulfonyl fluorides can be produced by treating sulfonic acids with sulfur tetrafluoride: