A compound of formula I: or a single stereoisomer or mixture of stereoisomers thereof, or a pharmaceutically acceptable salt thereof, wherein: ring A is a 3-8 membered monocyclic heterocycloalkylene optionally substituted with up to three substituents selected from the group consisting of C 1 -C 6 alkyl, C 1 -C 6 alkoxy, halo, CN, C 1 -C 6 haloalkyl, phenyl, OH, NH 2, NH(C 1 -C 6 alkyl), N(C 1 -C 6 alkyl) 2, COOH, COO(Ci-C 6 alkyl), CONH 2, CONH(C 1 -C 6 alkyl), CON(C 1 -C 6 alkyl) 2, and oxo; J is C 1 -C 6 alkylene or C 3 -C 8 cycloalkylene, either of which is optionally substituted with halo, OH, or C 1 -C 6 alkoxy, wherein up to two methylene units of the C 1 -C 6 alkylene are optionally and independently replaced with O, S, SO, SO 2, or C=O; R x, R y, R x', and R y' are each independently H, C 1 -C 6 alkyl, or an amino protecting group; Y is a bond or C 1 -C 6 alkylene optionally substituted with OH, NH 2, CN, halo, or Ci-C 6 alkoxy, wherein up to two methylene units of the C 1 -C 6 alkylene are optionally and independently replaced by O, NH, N-(C 1 -C 6 alkyl), N-(C 1 -C 6 hydroxyalkyl), N-(C 1 -C 6 haloalkyl), N-(C 1-6 alkylene-C 3-8 cycloalkyl), NH(C=O), N-(C 1-6 alkyl)(C=O), or (C=O); ring B is a 3-8 membered monocyclic cycloalkylene, 3-8 membered monocyclic heterocycloalkylene, 6-12 membered bicyclic cycloalkylene, or a 6-12 membered bicyclic heterocycloalkylene, each of which is optionally substituted with up to three substituents selected from the group consisting of C 1 -C 6 alkyl, C 1 -C 6 alkoxy, halo, CN, C 1 -C 6 haloalkyl, OH, COOH, COO(C 1 -C 6 alkyl), CONH 2, CONH(C 1 -C 6 alkyl), CON(C 1 -C 6 alkyl) 2, and Ci-C 6 hydroxyalkyl; L is a bond or a C 1 -C 6 alkylene, wherein up to two methylene units of the C 1 -C 6 alkylene may be independently replaced with O, NH, (C=O), NH(C=O), N-(C 1-6 alkyl)(C=O), (C=NH), NH(C=N), or N-(C 1-6 alkyl); ring C, together with the phenyl ring to which it is fused, forms an 8-12 membered bicyclic arylene or an 8-12 membered bicyclic heteroarylene, wherein the bicyclic heteroarylene has 1-3 heteroatoms independently selected from N, O, or S; R 1, R 2, and R 3 are each independently selected from the group consisting of C 1 -C 6 alkyl, halo, CN, OH, NH 2, NH(C 1 -C 6 alkyl), N(C 1 -C 6 alkyl) 2, COO(C 1 -C 6 alkyl), CONH 2, C 1 -C 6 haloalkyl, oxo, and C 1 -C 6 alkoxy; and m, n, and p are each independently 0, 1, 2, or 3. ring A is a 3-8 membered monocyclic heterocycloalkylene optionally substituted with up to three substituents selected from the group consisting of C 1 -C 6 alkyl, C 1 -C 6 alkoxy, halo, CN, C 1 -C 6 haloalkyl, phenyl, OH, NH 2, NH(C 1 -C 6 alkyl), N(C 1 -C 6 alkyl) 2, COOH, COO(Ci-C 6 alkyl), CONH 2, CONH(C 1 -C 6 alkyl), CON(C 1 -C 6 alkyl) 2, and oxo; J is C 1 -C 6 alkylene or C 3 -C 8 cycloalkylene, either of which is optionally substituted with halo, OH, or C 1 -C 6 alkoxy, wherein up to two methylene units of the C 1 -C 6 alkylene are optionally and independently replaced with O, S, SO, SO 2, or C=O; R x, R y, R x', and R y' are each independently H, C 1 -C 6 alkyl, or an amino protecting group; Y is a bond or C 1 -C 6 alkylene optionally substituted with OH, NH 2, CN, halo, or Ci-C 6 alkoxy, wherein up to two methylene units of the C 1 -C 6 alkylene are optionally and independently replaced by O, NH, N-(C 1 -C 6 alkyl), N-(C 1 -C 6 hydroxyalkyl), N-(C 1 -C 6 haloalkyl), N-(C 1-6 alkylene-C 3-8 cycloalkyl), NH(C=O), N-(C 1-6 alkyl)(C=O), or (C=O); ring B is a 3-8 membered monocyclic cycloalkylene, 3-8 membered monocyclic heterocycloalkylene, 6-12 membered bicyclic cycloalkylene, or a 6-12 membered bicyclic heterocycloalkylene, each of which is optionally substituted with up to three substituents selected from the group consisting of C 1 -C 6 alkyl, C 1 -C 6 alkoxy, halo, CN, C 1 -C 6 haloalkyl, OH, COOH, COO(C 1 -C 6 alkyl), CONH 2, CONH(C 1 -C 6 alkyl), CON(C 1 -C 6 alkyl) 2, and Ci-C 6 hydroxyalkyl; L is a bond or a C 1 -C 6 alkylene, wherein up to two methylene units of the C 1 -C 6 alkylene may be independently replaced with O, NH, (C=O), NH(C=O), N-(C 1-6 alkyl)(C=O), (C=NH), NH(C=N), or N-(C 1-6 alkyl); ring C, together with the phenyl ring to which it is fused, forms an 8-12 membered bicyclic arylene or an 8-12 membered bicyclic heteroarylene, wherein the bicyclic heteroarylene has 1-3 heteroatoms independently selected from N, O, or S; R 1, R 2, and R 3 are each independently selected from the group consisting of C 1 -C 6 alkyl, halo, CN, OH, NH 2, NH(C 1 -C 6 alkyl), N(C 1 -C 6 alkyl) 2, COO(C 1 -C 6 alkyl), CONH 2, C 1 -C 6 haloalkyl, oxo, and C 1 -C 6 alkoxy; and m, n, and p are each independently 0, 1, 2, or 3.