Coagulation factor XII (FXII) inhibitors are of interest for the study of the protease in the intrinsic coagulation pathway, for the suppression of contact activation in blood coagulation assays, and they have potential application in antithrombotic therapy. However, synthetic FXII inhibitors developed to date have weak binding affinity and/or poor selectivity. Herein, we developed a peptide macrocycle that inhibits activated FXII (FXLIIa) with an inhibitory constant K-i of 22 nM and a selectivity of >2000-fold over other proteases. Sequence and structure analysis revealed that one of the two macrocydic rings of the in vitro evolved peptide mimics the combining loop of corn trypsin inhibitor, a natural protein-based inhibitor of FXIIa. The synthetic inhibitor blocked intrinsic coagulation initiation without affecting extrinsic coagulation. Furthermore, the peptide macrocycle efficiently suppressed plasma coagulation triggered by contact of blood with sample tubes and allowed specific investigation of tissue factor initiated coagulation.