Requires Mg2+. The enzyme, which participates in the biosynthesis of some ribosomal peptide natural products (RiPPs) such as the trunkamides, converts L-cysteine residues to thiazoline rings. The enzyme requires two domains - a cyclodehydratase domain, known as a YcaO domain, and a substrate recognition domain (RRE domain) that controls the regiospecificity of the enzyme. The RRE domain can either be fused to the YcaO domain or occur as a separate protein; however both domains are required for activity. The enzyme can process multiple L-cysteine residues within the same substrate peptide, and all enzymes characterized so far follow a defined order, starting with the L-cysteine closest to the C-terminus. The reaction involves phosphorylation of the preceding ribosomal peptide backbone amide bond, forming ADP and a phosphorylated intermediate, followed by release of the phosphate group. In some cases the enzyme catalyses a side reaction in which the phosphorylated intermediate reacts with ADP to form AMP and diphosphate. This activity is also catalysed by the related enzyme EC 188.8.131.52, oxazoline synthase. That enzyme differs by having an RRE domain that also recognizes L-serine and L-threonine residues, which are converted to oxazoline and methyloxazoline rings, respectively.