A compound of Formula IA: or a pharmaceutically acceptable salt thereof, wherein A is N or C; R 1 is H, C 1 -C 6 -alkyl, C 1 -C 6 -alkenyl, or C 1 -C 6 -alkyl-OH; R 2 is, at each occurrence, independently selected from -OH, halo, C 1 -C 6 -alkyl, C 1 -C 6 -alkylene, C 0 -C 6 -alkyl-C 3 -C 6 -cycloalkyl, C 0 -C 6 -alkyl-C 2 -C 6 -heterocycloalkyl, C 0 -C 6 -alkyl-OR 6, C 0 -C 6 -alkyl-N(R') 2, C 0 -C 6 -alkyl-SR 8, C 0 -C 6 -alkyl-S R 8, C 0 -C 6 -alkyl-S 2 R 8, C 0 -C 6 -alkyl-C OR 9, C 0 -C 6 -alkyl-OC R 9, C 0 -C 6 -alkyl-OC OR 9, C 0 -C 6 -alkyl-OC N(R 7) 2, and C 0 -C 6 -alkyl-C N(R 7) 2, wherein alkyl, cycloalkyl, and heterocycloalkyl are optionally substituted with 1, 2, or 3 groups, each independently selected from -OH and halo; R 3 is, at each occurrence, independently selected from -OH, halo, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, -O-C 1 -C 6 -alkyl, and C 1 -C 6 -alkyl-OH; R 4 is selected from (CR a R b) p -C 1 -C 9 -heteroaryl, (CR a R b) p -C 6 -C 12 -aryl, (CR a R b) p -C 3 -C 7 -cycloalkyl, and (CR a R b) p -C 2 -C 6 -heterocycloalkyl, wherein heteroaryl, aryl, cycloalkyl, and heterocycloalkyl are optionally substituted with 1, 2, 3, or 4 groups, each independently selected from -OH, halo, -CN, -SF 5, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, -O-C 1 -C 6 -alkyl, and C 1 -C 6 -alkyl-OH; R 5 is selected from H, C 1 -C 6 -alkyl, and C 1 -C 6 -alkyl-OH; R 6 is selected from H, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, C 1 -C 6 -alkenyl, and C 0 -C 6 -alkyl-C 3 -C 6 -cycloalkyl; R 7 is selected from H, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, C 1 -C 6 -alkyl-OR 10, -C C 1 -C 6 -alkyl, -C C 1 -C 6 -haloalkyl, -C C 1 -C 6 -alkyl-OR 10, -C C 1 -C 6 -alkyl-CN, -C C 3 -C 7 -cycloalkyl,-C O-C 1 -C 6 -alkyl, -C O-C 1 -C 6 -haloalkyl, -C O-C 3 -C 7 -cycloalkyl, -C N(R 10) 2,-S 2 C 1 -C 6 -alkyl, -S 2 C 1 -C 6 -haloalkyl and -S 2 C 3 -C 7 -cycloalkyl; or wherein two R 7 groups together with the N to which they are attached form a C 2 -C 6 heterocycle, wherein the C 2 -C 6 heterocycle is further independently and optionally substituted with 1 or 2 oxo or halogen substituents; R 8 is selected from H and C 1 -C 6 -alkyl; R 9 is selected from H and C 1 -C 6 -alkyl; R 10 is selected from H and C 1 -C 6 -alkyl; R a is, at each occurrence, independently selected from H, -OH, halo, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, -O-C 1 -C 6 -alkyl, and C 1 -C 6 -alkyl-OH; R b is, at each occurrence, independently selected from H and C 1 -C 6 -alkyl; m is 0, 1, 2, 3, or 4; n is 0, 1, 2, 3, or 4; and p is 0, 1,2, 3, or 4. A is N or C; R 1 is H, C 1 -C 6 -alkyl, C 1 -C 6 -alkenyl, or C 1 -C 6 -alkyl-OH; R 2 is, at each occurrence, independently selected from -OH, halo, C 1 -C 6 -alkyl, C 1 -C 6 -alkylene, C 0 -C 6 -alkyl-C 3 -C 6 -cycloalkyl, C 0 -C 6 -alkyl-C 2 -C 6 -heterocycloalkyl, C 0 -C 6 -alkyl-OR 6, C 0 -C 6 -alkyl-N(R') 2, C 0 -C 6 -alkyl-SR 8, C 0 -C 6 -alkyl-S R 8, C 0 -C 6 -alkyl-S 2 R 8, C 0 -C 6 -alkyl-C OR 9, C 0 -C 6 -alkyl-OC R 9, C 0 -C 6 -alkyl-OC OR 9, C 0 -C 6 -alkyl-OC N(R 7) 2, and C 0 -C 6 -alkyl-C N(R 7) 2, wherein alkyl, cycloalkyl, and heterocycloalkyl are optionally substituted with 1, 2, or 3 groups, each independently selected from -OH and halo; R 3 is, at each occurrence, independently selected from -OH, halo, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, -O-C 1 -C 6 -alkyl, and C 1 -C 6 -alkyl-OH; R 4 is selected from (CR a R b) p -C 1 -C 9 -heteroaryl, (CR a R b) p -C 6 -C 12 -aryl, (CR a R b) p -C 3 -C 7 -cycloalkyl, and (CR a R b) p -C 2 -C 6 -heterocycloalkyl, wherein heteroaryl, aryl, cycloalkyl, and heterocycloalkyl are optionally substituted with 1, 2, 3, or 4 groups, each independently selected from -OH, halo, -CN, -SF 5, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, -O-C 1 -C 6 -alkyl, and C 1 -C 6 -alkyl-OH; R 5 is selected from H, C 1 -C 6 -alkyl, and C 1 -C 6 -alkyl-OH; R 6 is selected from H, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, C 1 -C 6 -alkenyl, and C 0 -C 6 -alkyl-C 3 -C 6 -cycloalkyl; R 7 is selected from H, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, C 1 -C 6 -alkyl-OR 10, -C C 1 -C 6 -alkyl, -C C 1 -C 6 -haloalkyl, -C C 1 -C 6 -alkyl-OR 10, -C C 1 -C 6 -alkyl-CN, -C C 3 -C 7 -cycloalkyl,-C O-C 1 -C 6 -alkyl, -C O-C 1 -C 6 -haloalkyl, -C O-C 3 -C 7 -cycloalkyl, -C N(R 10) 2,-S 2 C 1 -C 6 -alkyl, -S 2 C 1 -C 6 -haloalkyl and -S 2 C 3 -C 7 -cycloalkyl; or wherein two R 7 groups together with the N to which they are attached form a C 2 -C 6 heterocycle, wherein the C 2 -C 6 heterocycle is further independently and optionally substituted with 1 or 2 oxo or halogen substituents; R 8 is selected from H and C 1 -C 6 -alkyl; R 9 is selected from H and C 1 -C 6 -alkyl; R 10 is selected from H and C 1 -C 6 -alkyl; R a is, at each occurrence, independently selected from H, -OH, halo, C 1 -C 6 -alkyl, C 1 -C 6 -haloalkyl, -O-C 1 -C 6 -alkyl, and C 1 -C 6 -alkyl-OH; R b is, at each occurrence, independently selected from H and C 1 -C 6 -alkyl; m is 0, 1, 2, 3, or 4; n is 0, 1, 2, 3, or 4; and p is 0, 1,2, 3, or 4.