An internal FK506-binding domain is the catalytic core of the prolyl isomerase activity associated with the Bacillus subtilis trigger factor.