Disclosed are compounds of formula I, II, and III, and pharmaceutically acceptable salts thereof, which are inhibitors of kallikrein. Also provided are pharmaceutical compositions comprising such a compound, and methods involving use of the compounds and compositions in the treatment and prevention of acquired or hereditary angioedema, or other diseases and conditions characterized by aberrant kallikrein activity. (I) (II) (III)