A compound of the formula where R 1 is selected from the group consisting of H, alkyl, perhaloalkyl, alkanoyl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 2 and R 3 are independently selected from the group consisting of H, halogen, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl, CN, OR 8, NR 8 R 9, SR 8, OCOR 10, CONR 8 R 9, NR 8 COR 10, NR 8 CO 2 R 10, SO 2 NR 8 R 9, SO 2 R 10, NR 8 SO 2 R 10, aryl, heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 4 and R 5 together with the atoms which they are attached form a 5- or 6-membered carbocycle, substituted with R 14a and one or more of each of R 11a, R 11b, R 12a, R 12b, R 13a, R 1b, and R 14b; R 6a and R 6b are independently selected from the group consisting of H, C 1-8 alkyl, OR 8, and heteroaryl; or R 6a and R 6b taken together are -CH 2 CH 2 -; R 7a and R 7b are independently selected from the group consisting of H, C 1-8 alkyl, OR 8, aryl, and heteroaryl; or R 7a and R 7b taken together are -CH 2 CH 2 -; R 8 is selected from the group consisting of H, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl, C 1-8 alkyl-O-C 1-8 alkyl, aryl, heteroaryl, C 1-8 alkyl-O-aryl, C 1-8 alkyl-O-heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 9 is selected from the group consisting of H, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl, C 1-8 alkyl-O-C 1-8 alkyl, aryl, heteroaryl, C 1-8 alkyl-O-aryl, C 1-8 alkyl-O-heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 10 is selected from the group consisting of C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl, C 1-8 alkyl-O-C 1-8 alkyl, aryl, heteroaryl, C 1-8 alkyl-O-aryl, C 1-8 alkyl-O-heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 11a and R 11b are independently selected from the group consisting of H, halogen, C 1-8 alkyl, perhaloalkyl, aryl, and heteroaryl; R 12a and R 12b are independently selected from the group consisting of H, halogen, C 1-8 alkyl, perhalo alkyl, aryl, and heteroaryl; R 13a and R 13b are independently selected from the group consisting of H, halogen, C 1-8 alkyl, perhaloalkyl, aryl, and heteroaryl; R 14a is selected from the group consisting of halogen, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl (preferably CF 3), CN, OR 8, NR 8 R 9, SR 8, OCOR 10, OCONR 8 R 9, CONR 8 R 9, NR 8 COR 10, NR 8 CO 2 R 10, NR 8 SO 2 R 10, aryl, heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl, R 14b is selected from the group consisting of H, halogen, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl (preferably CF 3), CN, OR 8, NR 8 R 9, SR 8, OCOR 10, OCONR 8 R 9, CONR 8 R 9, NR 8 COR 10, NR 8 CO 2 R 10, NR 8 SO 2 R 10, aryl, heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; or a pharmaceutically acceptable salt thereof. R 1 is selected from the group consisting of H, alkyl, perhaloalkyl, alkanoyl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 2 and R 3 are independently selected from the group consisting of H, halogen, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl, CN, OR 8, NR 8 R 9, SR 8, OCOR 10, CONR 8 R 9, NR 8 COR 10, NR 8 CO 2 R 10, SO 2 NR 8 R 9, SO 2 R 10, NR 8 SO 2 R 10, aryl, heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 4 and R 5 together with the atoms which they are attached form a 5- or 6-membered carbocycle, substituted with R 14a and one or more of each of R 11a, R 11b, R 12a, R 12b, R 13a, R 1b, and R 14b; R 6a and R 6b are independently selected from the group consisting of H, C 1-8 alkyl, OR 8, and heteroaryl; or R 6a and R 6b taken together are -CH 2 CH 2 -; R 7a and R 7b are independently selected from the group consisting of H, C 1-8 alkyl, OR 8, aryl, and heteroaryl; or R 7a and R 7b taken together are -CH 2 CH 2 -; R 8 is selected from the group consisting of H, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl, C 1-8 alkyl-O-C 1-8 alkyl, aryl, heteroaryl, C 1-8 alkyl-O-aryl, C 1-8 alkyl-O-heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 9 is selected from the group consisting of H, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl, C 1-8 alkyl-O-C 1-8 alkyl, aryl, heteroaryl, C 1-8 alkyl-O-aryl, C 1-8 alkyl-O-heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 10 is selected from the group consisting of C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl, C 1-8 alkyl-O-C 1-8 alkyl, aryl, heteroaryl, C 1-8 alkyl-O-aryl, C 1-8 alkyl-O-heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl; R 11a and R 11b are independently selected from the group consisting of H, halogen, C 1-8 alkyl, perhaloalkyl, aryl, and heteroaryl; R 12a and R 12b are independently selected from the group consisting of H, halogen, C 1-8 alkyl, perhalo alkyl, aryl, and heteroaryl; R 13a and R 13b are independently selected from the group consisting of H, halogen, C 1-8 alkyl, perhaloalkyl, aryl, and heteroaryl; R 14a is selected from the group consisting of halogen, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl (preferably CF 3), CN, OR 8, NR 8 R 9, SR 8, OCOR 10, OCONR 8 R 9, CONR 8 R 9, NR 8 COR 10, NR 8 CO 2 R 10, NR 8 SO 2 R 10, aryl, heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl, R 14b is selected from the group consisting of H, halogen, C 1-8 alkyl, C 2-8 alkenyl, C 2-8 alkynyl, perhaloalkyl (preferably CF 3), CN, OR 8, NR 8 R 9, SR 8, OCOR 10, OCONR 8 R 9, CONR 8 R 9, NR 8 COR 10, NR 8 CO 2 R 10, NR 8 SO 2 R 10, aryl, heteroaryl, C 1-8 alkylaryl, and C 1-8 alkylheteroaryl;