Cyclic tetrapeptides (CTPs) have great potential for materials and therapeutics; however, synthesizing these molecules remains a significant challenge. Now, an enzyme has been developed that enables efficient N-to-C cyclization of linear tetrapeptidyl substrates to form structurally diverse CTPs.