A compound of formula II-f: or a pharmaceutically acceptable salt thereof, wherein: Ring A is a 3-7 membered saturated or partially unsaturated carbocyclic ring or a 4-7 membered saturated or partially unsaturated heterocyclic ring having 1-3 heteroatoms independently selected from nitrogen, oxygen, or sulfur; nis1-4; each R 1 is independently halogen, -CN, -NO 2, -OR, -CH 2 OR, -SR, -N 2, -SO 2 R -SO 2 N 2, -SOR, -C R, -CO 2 R, -C N 2, -C N -OR, -NRC R, -NRC N 2, Cy, or -NRSO 2 R; or R 1 is selected from one of the following formulas: or two R 1 groups are taken together with their intervening atoms to form an optionally substituted 4-7 membered fused, spiro-fused, or bridged bicyclic ring having 0-2 heteroatoms independently selected from nitrogen, oxygen, or sulfur; each Cy is an optionally substituted ring selected from a 3-7 membered saturated or partially unsaturated carbocyclic ring or a 4-7 membered saturated or partially unsaturated heterocyclic ring having 1-3 heteroatoms independently selected from nitrogen, oxygen, or sulfur; each R is independently hydrogen or an optionally substituted group selected from C 1-6 aliphatic, aryl, 4-7 membered saturated or partially unsaturated heterocyclic having 1-2 heteroatoms independently selected from nitrogen, oxygen, or sulfur, or 5-6 membered heteroaryl ring having 1-4 heteroatoms independently selected from nitrogen, oxygen, or sulfur, or: two R groups on the same nitrogen are taken together with their intervening atoms to form a 4-7 membered saturated, partially unsaturated, or heteroaryl ring having 0-3 heteroatoms, in addition to the nitrogen, independently selected from nitrogen, oxygen, or sulfur; R z is -R, -CN, -NO 2, halogen, -C N 2, -C OR, -C R, -N 2, -OR, or -SO 2 N 2; Ring B is an unsubstituted 4-8 membered partially unsaturated carbocyclic fused ring; and L is -0-. Ring A is a 3-7 membered saturated or partially unsaturated carbocyclic ring or a 4-7 membered saturated or partially unsaturated heterocyclic ring having 1-3 heteroatoms independently selected from nitrogen, oxygen, or sulfur; nis1-4; each R 1 is independently halogen, -CN, -NO 2, -OR, -CH 2 OR, -SR, -N 2, -SO 2 R -SO 2 N 2, -SOR, -C R, -CO 2 R, -C N 2, -C N -OR, -NRC R, -NRC N 2, Cy, or -NRSO 2 R; or R 1 is selected from one of the following formulas: or two R 1 groups are taken together with their intervening atoms to form an optionally substituted 4-7 membered fused, spiro-fused, or bridged bicyclic ring having 0-2 heteroatoms independently selected from nitrogen, oxygen, or sulfur; each Cy is an optionally substituted ring selected from a 3-7 membered saturated or partially unsaturated carbocyclic ring or a 4-7 membered saturated or partially unsaturated heterocyclic ring having 1-3 heteroatoms independently selected from nitrogen, oxygen, or sulfur; each R is independently hydrogen or an optionally substituted group selected from C 1-6 aliphatic, aryl, 4-7 membered saturated or partially unsaturated heterocyclic having 1-2 heteroatoms independently selected from nitrogen, oxygen, or sulfur, or 5-6 membered heteroaryl ring having 1-4 heteroatoms independently selected from nitrogen, oxygen, or sulfur, or: two R groups on the same nitrogen are taken together with their intervening atoms to form a 4-7 membered saturated, partially unsaturated, or heteroaryl ring having 0-3 heteroatoms, in addition to the nitrogen, independently selected from nitrogen, oxygen, or sulfur; R z is -R, -CN, -NO 2, halogen, -C N 2, -C OR, -C R, -N 2, -OR, or -SO 2 N 2; Ring B is an unsubstituted 4-8 membered partially unsaturated carbocyclic fused ring; and L is -0-. two R groups on the same nitrogen are taken together with their intervening atoms to form a 4-7 membered saturated, partially unsaturated, or heteroaryl ring having 0-3 heteroatoms, in addition to the nitrogen, independently selected from nitrogen, oxygen, or sulfur; R z is -R, -CN, -NO 2, halogen, -C N 2, -C OR, -C R, -N 2, -OR, or -SO 2 N 2; Ring B is an unsubstituted 4-8 membered partially unsaturated carbocyclic fused ring; and L is -0-.