A compound of formula or a pharmaceutically acceptable salt or solvate thereof, wherein L is a bond, -[C(R 1) 2] m -, -cyclopropyl-, or -CO-; m is 1 or 2; n is 0, 1, 2, 3, or 4; R 1 is independently selected from H, C 1-3 alkyl, C 1-3 haloalkyl, -OH, or halo; A is phenyl, cyclohexyl, a 5 or 6 membered heterocyclyl, or a 5 or 6 membered heteroaryl, wherein the phenyl is optionally fused to a 5 or 6 membered heterocyclyl or 5 or 6 membered heteroaryl, wherein A is optionally substituted with 1, 2, or 3 R A groups, wherein each R A is independently R A1, -C 1 -C 6 alkyl-R A1, C 1 -C 6 alkyl, C 1 -C 6 haloalkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 8 cycloalkyl, or heterocyclyl wherein the cycloalkyl and heterocyclyl are each optionally substituted with 1, 2, 3, or 4 groups that are independently R A1, C 1 -C 6 alkyl, or -C 1 -C 6 alkyl-R A1, wherein each R A1 is independently halogen, cyano, nitro, -OR, -NR 2, -SR, -C R, or -C OR; alternatively, 2R A on adjacent carbons can join to form a -O-CH 2 -O-, -O-CH 2 -CH 2, -O-CH 2 -CH 2 -O-, -CH 2 -CH 2 -CH 2 -, or -O-CF 2 -O-; ring C is a 5 membered heterocyclic ring selected from triazolyl, imidazolyl, pyrrazolyl, oxazolyl; wherein when ring C is pyrrazolyl, imidazolyl, or oxazolyl, then ring C is optionally substituted with C 1-4 alkyl, C 2-3 alkenyl, C 1-3 haloalkyl, C 3-6 cycloalkyl, -CF 3, -C 1-4 alkyl-OH, -C 1-4 alkyl-O-C 1-3 alkyl, -C 1-3 alkyl-NR 2; -C 1-3 alkyl-CO 2 H, -C 1-3 alkyl-NHSO 2 -C 1-3 alkyl, -NH-C 1-3 alkyl-OR, or -C 1-3 alkyl-pyrrolidinyl; R B1 is hydrogen, C 1-3 alkyl, halo, or C 1-3 haloalkyl; R B2 is hydrogen or halo; R B3 is hydrogen, C 1-3 alkyl, halo, -CN, C 1-3 haloalkyl, -C -C 1-3 alkyl, -CO-NH 2, -CO-N 2, or -C 1-3 alkyl-OH, each R D1 and R D2 are independently R D3, C 1 -C 6 alkyl, -C 1 -C 6 alkyl-R D3, C 1 -C 6 haloalkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 8 cycloalkyl, or heterocyclyl, wherein the cycloalkyl or heterocyclyl are each optionally substituted with 1, 2, 3, or 4 groups that are independently R D3, C 1 -C 6 alkyl, C 3 -C 6 cycloalkyl, or -C 1 -C 6 alkyl-R D3, wherein each R D3 is independently halogen, cyano, -OR, -NR 2, -SR, -C R, -C OR, -C NR 2, -S R, -S 2 R, -S NR 2, -S 2 NR 2, -OC R, -OC OR, -OC NR 2, -N C R, -N C OR, -N C NR 2, -N S 2 R, -N S 2 OR, -N S 2 NR 2, or-S 2 N C NR 2; and R C is hydrogen, halogen, C 1 -C 6 alkyl, cyano, or nitro; each R group is independently hydrogen, C 1 -C 6 alkyl, -C 1 -C 6 alkyl-R 2, C 1 -C 6 haloalkyl, -C 1 -C 6 haloalkyl-R 2, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, or C 3 -C 8 cycloalkyl, wherein each R 2 is independently cyano, -OR 3, -N(R 3) 2, -N(R 3)S 2 R 3, -N(R 3)S 2 OR 3, or -N(R 3)S 2 N(R 3) 2, wherein each R 3 is independently hydrogen, C 1 -C 6 alkyl, or C 1 -C 6 haloalkyl. L is a bond, -[C(R 1) 2] m -, -cyclopropyl-, or -CO-; m is 1 or 2; n is 0, 1, 2, 3, or 4; R 1 is independently selected from H, C 1-3 alkyl, C 1-3 haloalkyl, -OH, or halo; A is phenyl, cyclohexyl, a 5 or 6 membered heterocyclyl, or a 5 or 6 membered heteroaryl, wherein the phenyl is optionally fused to a 5 or 6 membered heterocyclyl or 5 or 6 membered heteroaryl, wherein A is optionally substituted with 1, 2, or 3 R A groups, wherein each R A is independently R A1, -C 1 -C 6 alkyl-R A1, C 1 -C 6 alkyl, C 1 -C 6 haloalkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 8 cycloalkyl, or heterocyclyl wherein the cycloalkyl and heterocyclyl are each optionally substituted with 1, 2, 3, or 4 groups that are independently R A1, C 1 -C 6 alkyl, or -C 1 -C 6 alkyl-R A1, wherein each R A1 is independently halogen, cyano, nitro, -OR, -NR 2, -SR, -C R, or -C OR; alternatively, 2R A on adjacent carbons can join to form a -O-CH 2 -O-, -O-CH 2 -CH 2, -O-CH 2 -CH 2 -O-, -CH 2 -CH 2 -CH 2 -, or -O-CF 2 -O-; ring C is a 5 membered heterocyclic ring selected from triazolyl, imidazolyl, pyrrazolyl, oxazolyl; wherein when ring C is pyrrazolyl, imidazolyl, or oxazolyl, then ring C is optionally substituted with C 1-4 alkyl, C 2-3 alkenyl, C 1-3 haloalkyl, C 3-6 cycloalkyl, -CF 3, -C 1-4 alkyl-OH, -C 1-4 alkyl-O-C 1-3 alkyl, -C 1-3 alkyl-NR 2; -C 1-3 alkyl-CO 2 H, -C 1-3 alkyl-NHSO 2 -C 1-3 alkyl, -NH-C 1-3 alkyl-OR, or -C 1-3 alkyl-pyrrolidinyl; R B1 is hydrogen, C 1-3 alkyl, halo, or C 1-3 haloalkyl; R B2 is hydrogen or halo; R B3 is hydrogen, C 1-3 alkyl, halo, -CN, C 1-3 haloalkyl, -C -C 1-3 alkyl, -CO-NH 2, -CO-N 2, or -C 1-3 alkyl-OH, each R D1 and R D2 are independently R D3, C 1 -C 6 alkyl, -C 1 -C 6 alkyl-R D3, C 1 -C 6 haloalkyl, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, C 3 -C 8 cycloalkyl, or heterocyclyl, wherein the cycloalkyl or heterocyclyl are each optionally substituted with 1, 2, 3, or 4 groups that are independently R D3, C 1 -C 6 alkyl, C 3 -C 6 cycloalkyl, or -C 1 -C 6 alkyl-R D3, wherein each R D3 is independently halogen, cyano, -OR, -NR 2, -SR, -C R, -C OR, -C NR 2, -S R, -S 2 R, -S NR 2, -S 2 NR 2, -OC R, -OC OR, -OC NR 2, -N C R, -N C OR, -N C NR 2, -N S 2 R, -N S 2 OR, -N S 2 NR 2, or-S 2 N C NR 2; and R C is hydrogen, halogen, C 1 -C 6 alkyl, cyano, or nitro; each R group is independently hydrogen, C 1 -C 6 alkyl, -C 1 -C 6 alkyl-R 2, C 1 -C 6 haloalkyl, -C 1 -C 6 haloalkyl-R 2, C 2 -C 6 alkenyl, C 2 -C 6 alkynyl, or C 3 -C 8 cycloalkyl, wherein each R 2 is independently cyano, -OR 3, -N(R 3) 2, -N(R 3)S 2 R 3, -N(R 3)S 2 OR 3, or -N(R 3)S 2 N(R 3) 2, wherein each R 3 is independently hydrogen, C 1 -C 6 alkyl, or C 1 -C 6 haloalkyl.