The specific inhibition of serine proteases, which are crucial switches in many physiologically important processes, is of value both for basic research and for therapeutic applications. Ecotin, a potent macromolecular inhibitor of serine proteases of the S1A family, presents an attractive scaffold to engineer specific protease inhibitors because of its large inhibitor-protease interface. Using synthetic shuffling in combination with a restricted tetranomial diversity, we created ecotin libraries that are mutated at all 20 amino acid residues in the binding interface. The efficacy of these libraries was demonstrated against the serine protease plasma kallikrein (Pkal). Competitive phage display selection yielded a Pkal inhibitor with an apparent dissociation equilibrium constant (K(i)*) of 11 pM, whereas K(i)* values for related proteases (such as Factor Xa (FXa), Factor XIa (FXIa), urokinase-type plasminogen activator (uPA), thrombin, and membrane-type serine protease 1 (MT-SP1)) were four to seven orders of magnitude higher. The adaptability of the scaffold was demonstrated by the isolation of inhibitors to two additional serine proteases, MT-SP1/matriptase and Factor XIIa.