A compound of Formula: or a tautomer thereof, or a pharmaceutically acceptable salt of each thereof, wherein ring A is an optionally substituted 4-10 membered cycloalkyl or 4-10 membered heterocycle containing up to 5 ring heteroatoms, wherein the heteroatom is selected from the group consisting of O, N, S, and oxidized forms of N and S; ring B is a C 6 -C 10 aryl or 5-10 membered heteroaryl having 1-3 nitrogen atoms, or oxidized versions thereof, wherein the aryl or heteroaryl is optionally substituted; is a single or a double bond; R 5 is hydrogen or C 1 -C 6 alkyl, wherein the C 1 -C 6 alkyl is optionally substituted with 1-5 halo; R 6 is halo, C 1 -C 6 alkyl, C 1 -C 6 alkoxy, C 1 -C 6 alkylthio, C 1 -C 6 alkyl-S -, or C 1 -C 6 alkylS 2 -, wherein the C 1 -C 6 alkyl is optionally substituted with 1-5 halo; or R 6 is 4-10 membered cycloalkyl or heterocycle substituted with an R'R'N- moiety wherein each R' is independently C 1 -C 6 alkyl or hydrogen; p is 0, 1, 2 or 3; wherein the term heterocyclyl or heterocycle refers to a non-aromatic, mono-, bi-, or tricyclic ring containing 2-12 ring carbon atoms and 1-8 ring heteroatoms; preferably wherein, unless stated otherwise, "optionally substituted" refers to a substituted or unsubstituted group, wherein the group may be substituted with one or more substituents selected from the group consisting of oxo, halo, -CN, NO 2, -N 2 +, -CO 2 R 100, -OR 100, -SR 100, -SOR 100,-SO 2 R 100, -NR 101 R 102, -CONR 101 R 102, -SO 2 NR 101 R 102, C 1 -C 6 alkyl, C 1 -C 6 alkoxy, -CR 100 =C(R 100) 2, -CCR 100, C 3 -C 10 cycloalkyl, C 3 -C 10 heterocyclyl, C 6 -C 12 aryl, and C 2 -C 12 heteroaryl, wherein each R 100 independently is hydrogen, C 1 -C 8 alkyl, C 3 -C 12 cycloalkyl, C 3 -C 10 heterocyclyl, C 6 -C 12 aryl, or C 2 -C 12 heteroaryl; wherein each alkyl, cycloalkyl, heterocyclyl, aryl, or heteroaryl is optionally substituted with 1-3 halo, 1-3 C 1 -C 6 alkyl, 1-3 C 1 -C 6 haloalkyl, or 1-3 C 1 -C 6 alkoxy; and R 101 and R 102 independently is hydrogen, C 1 -C 8 alkyl, optionally substituted with -CO 2 H or an ester thereof, C 1 -C 6 alkoxy, oxo, -CR 103 =C(R 103) 2, -CCR, C 3 -C 10 cycloalkyl, C 3 -C 10 heterocyclyl, C 6 -C 12 aryl, or C 2 -C 12 heteroaryl, wherein each R 103 independently is hydrogen, C 1 -C 8 alkyl, C 3 -C 12 cycloalkyl, C 3 -C 10 heterocyclyl, C 6 -C 12 aryl, or C 2 -C 12 heteroaryl; wherein each cycloalkyl, heterocyclyl, aryl, or heteroaryl is optionally substituted with 1-3 alkyl groups or 1-3 halo groups, or R 101 and R 102 together with the nitrogen atom they are attached to form a 5-7 membered heterocycle. ring A is an optionally substituted 4-10 membered cycloalkyl or 4-10 membered heterocycle containing up to 5 ring heteroatoms, wherein the heteroatom is selected from the group consisting of O, N, S, and oxidized forms of N and S; ring B is a C 6 -C 10 aryl or 5-10 membered heteroaryl having 1-3 nitrogen atoms, or oxidized versions thereof, wherein the aryl or heteroaryl is optionally substituted; is a single or a double bond; R 5 is hydrogen or C 1 -C 6 alkyl, wherein the C 1 -C 6 alkyl is optionally substituted with 1-5 halo; R 6 is halo, C 1 -C 6 alkyl, C 1 -C 6 alkoxy, C 1 -C 6 alkylthio, C 1 -C 6 alkyl-S -, or C 1 -C 6 alkylS 2 -, wherein the C 1 -C 6 alkyl is optionally substituted with 1-5 halo; or R 6 is 4-10 membered cycloalkyl or heterocycle substituted with an R'R'N- moiety wherein each R' is independently C 1 -C 6 alkyl or hydrogen; p is 0, 1, 2 or 3; wherein the term heterocyclyl or heterocycle refers to a non-aromatic, mono-, bi-, or tricyclic ring containing 2-12 ring carbon atoms and 1-8 ring heteroatoms; preferably wherein, unless stated otherwise, "optionally substituted" refers to a substituted or unsubstituted group, wherein the group may be substituted with one or more substituents selected from the group consisting of oxo, halo, -CN, NO 2, -N 2 +, -CO 2 R 100, -OR 100, -SR 100, -SOR 100,-SO 2 R 100, -NR 101 R 102, -CONR 101 R 102, -SO 2 NR 101 R 102, C 1 -C 6 alkyl, C 1 -C 6 alkoxy, -CR 100 =C(R 100) 2, -CCR 100, C 3 -C 10 cycloalkyl, C 3 -C 10 heterocyclyl, C 6 -C 12 aryl, and C 2 -C 12 heteroaryl, wherein each R 100 independently is hydrogen, C 1 -C 8 alkyl, C 3 -C 12 cycloalkyl, C 3 -C 10 heterocyclyl, C 6 -C 12 aryl, or C 2 -C 12 heteroaryl; wherein each alkyl, cycloalkyl, heterocyclyl, aryl, or heteroaryl is optionally substituted with 1-3 halo, 1-3 C 1 -C 6 alkyl, 1-3 C 1 -C 6 haloalkyl, or 1-3 C 1 -C 6 alkoxy; and R 101 and R 102 independently is hydrogen, C 1 -C 8 alkyl, optionally substituted with -CO 2 H or an ester thereof, C 1 -C 6 alkoxy, oxo, -CR 103 =C(R 103) 2, -CCR, C 3 -C 10 cycloalkyl, C 3 -C 10 heterocyclyl, C 6 -C 12 aryl, or C 2 -C 12 heteroaryl, wherein each R 103 independently is hydrogen, C 1 -C 8 alkyl, C 3 -C 12 cycloalkyl, C 3 -C 10 heterocyclyl, C 6 -C 12 aryl, or C 2 -C 12 heteroaryl; wherein each cycloalkyl, heterocyclyl, aryl, or heteroaryl is optionally substituted with 1-3 alkyl groups or 1-3 halo groups, or R 101 and R 102 together with the nitrogen atom they are attached to form a 5-7 membered heterocycle.