text: With primary amines, thionyl chloride gives sulfinylamine derivatives (RNSO), one example being N-sulfinylaniline. Thionyl chloride reacts with primary formamides to form isocyanides and with secondary formamides to give chloroiminium ions; as such a reaction with dimethylformamide will form the Vilsmeier reagent.
  By an analogous process primary amides will react with thionyl chloride to form imidoyl chlorides, with secondary amides also giving chloroiminium ions. These species are highly reactive and can be used to catalyse the conversion of carboxylic acids to acyl chlorides, they are also exploited in the Bischler–Napieralski reaction as a means of forming isoquinolines.
  Primary amides will continue on to form nitriles if heated (Von Braun amide degradation).
  Thionyl chloride has also been used to promote the Beckmann rearrangement of oximes.