A compound represented by the following structural formula or a pharmaceutically acceptable salt thereof:, wherein: X-Y-Z is -NR-N=CH-, =N-NR-CH-, -CH=N-NR-, -NH-CH=CH-, -NH-CH=N-, -NH-N=N-, -NH-CH 2 -CH 2 -, -O-CH=N-, -NH-C(=O)-CH 2 -, or -NH-C(=O)-NH-; R is -H, C 1-4 alkyl, C 1-4 haloalkyl or -(C 1-4 alkyl)-Ph, wherein Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; U is -CH=CH-, -C≡C-, or phenylene; p is 0 or 1; W is -H; halogen; -CN; -C(=O)NR 1 R 2; -C(=O)OR 3; C 1-6 alkyl; a 3-8 membered partially unsaturated, or aromatic monocyclic ring having 0-4 heteroatoms selected from oxygen, nitrogen, or sulfur; or an 8-10 membered partially unsaturated, or aromatic bicyclic ring having 0-4 heteroatoms selected from oxygen, nitrogen, or sulfur; wherein said C 1-6 alkyl is optionally substituted with 1-4 occurrences of J W1, and wherein each of said monocyclic and bicyclic rings independently and optionally is substituted with 1-4 occurrences of J W2; J W1 is halogen, -CN, -OR 6, -NR 4 R 5, -NR 4 COR 5, -C(=O)NR 4 R 5, -C(=O)OR 6, -S 2 NR 4 R 5 -, S 2 R 6 -, or Ph, wherein said Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; J W2 is oxo, -NO 2, halogen, -CN, -OR 6, -O(CH 2)O-, -O(CH 2) 2 O-, -NR 4 R 5, -NR 4 COR 5,-C(=O)NR 4 R 5, -C(=O)OR 6, -S 2 NR 4 R 5 -, S 2 R 6 -, -C 1-6 alkyl, Ph, -(C 1-4 alkyl)Ph, or -O(C 1- 4 alkyl)Ph, wherein said -C 1-6 alkyl is optionally substituted with 1-3 occurrences of J A, and wherein said Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; each of R 1, R 3, R 4, R 5, and R 6 independently is -H; C 1-6 alkyl optionally substituted with 1-3 occurrences of J A; C 3-6 cycloalkyl optionally substituted with 1-3 occurrences of J B; or -(C 1- 4 alkyl)-Ph wherein Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; R 2 is C 1-6 alkyl optionally substituted with 1-3 occurrences of J A; C 3-6 cycloalkyl optionally substituted with 1-3 occurrences of J B; or -(C 1-4 alkyl)-Ph wherein Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; or optionally R 1 and R 2 together with the nitrogen atom to which they are attached form a 4-6 membered, non-aromatic, monocyclic ring wherein up to one methylene unit of the ring is optionally replaced with O, NH, N(C 1-4 alkyl), S, C, S, or S 2; or optionally R 4 and R 5 together with the nitrogen atom to which they are attached form a 4-6 membered, non-aromatic, monocyclic ring wherein up to one methylene unit of the ring is optionally replaced with O, NH, N(C 1-4 alkyl), S, C, S, or S 2; and each J A independently is halogen, CN, -OH, -O(C 1-4 alkyl), or -O(C 1-4 haloalkyl); each J B independently is halogen, -CN, -OH, -O(C 1-4 alkyl), -O(C 1-4 haloalkyl), C 1-4 alkyl, or C 1-4 haloalkyl; and each J Ph independently is halogen, -CN, -OH, -O(C 1-4 alkyl), -O(C 1-4 haloalkyl), C 1-4 alkyl, or C 1-4 haloalkyl X-Y-Z is -NR-N=CH-, =N-NR-CH-, -CH=N-NR-, -NH-CH=CH-, -NH-CH=N-, -NH-N=N-, -NH-CH 2 -CH 2 -, -O-CH=N-, -NH-C(=O)-CH 2 -, or -NH-C(=O)-NH-; R is -H, C 1-4 alkyl, C 1-4 haloalkyl or -(C 1-4 alkyl)-Ph, wherein Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; U is -CH=CH-, -C≡C-, or phenylene; p is 0 or 1; W is -H; halogen; -CN; -C(=O)NR 1 R 2; -C(=O)OR 3; C 1-6 alkyl; a 3-8 membered partially unsaturated, or aromatic monocyclic ring having 0-4 heteroatoms selected from oxygen, nitrogen, or sulfur; or an 8-10 membered partially unsaturated, or aromatic bicyclic ring having 0-4 heteroatoms selected from oxygen, nitrogen, or sulfur; wherein said C 1-6 alkyl is optionally substituted with 1-4 occurrences of J W1, and wherein each of said monocyclic and bicyclic rings independently and optionally is substituted with 1-4 occurrences of J W2; J W1 is halogen, -CN, -OR 6, -NR 4 R 5, -NR 4 COR 5, -C(=O)NR 4 R 5, -C(=O)OR 6, -S 2 NR 4 R 5 -, S 2 R 6 -, or Ph, wherein said Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; J W2 is oxo, -NO 2, halogen, -CN, -OR 6, -O(CH 2)O-, -O(CH 2) 2 O-, -NR 4 R 5, -NR 4 COR 5,-C(=O)NR 4 R 5, -C(=O)OR 6, -S 2 NR 4 R 5 -, S 2 R 6 -, -C 1-6 alkyl, Ph, -(C 1-4 alkyl)Ph, or -O(C 1- 4 alkyl)Ph, wherein said -C 1-6 alkyl is optionally substituted with 1-3 occurrences of J A, and wherein said Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; each of R 1, R 3, R 4, R 5, and R 6 independently is -H; C 1-6 alkyl optionally substituted with 1-3 occurrences of J A; C 3-6 cycloalkyl optionally substituted with 1-3 occurrences of J B; or -(C 1- 4 alkyl)-Ph wherein Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; R 2 is C 1-6 alkyl optionally substituted with 1-3 occurrences of J A; C 3-6 cycloalkyl optionally substituted with 1-3 occurrences of J B; or -(C 1-4 alkyl)-Ph wherein Ph is phenyl optionally substituted with 1-3 occurrences of J Ph; or optionally R 1 and R 2 together with the nitrogen atom to which they are attached form a 4-6 membered, non-aromatic, monocyclic ring wherein up to one methylene unit of the ring is optionally replaced with O, NH, N(C 1-4 alkyl), S, C, S, or S 2; or optionally R 4 and R 5 together with the nitrogen atom to which they are attached form a 4-6 membered, non-aromatic, monocyclic ring wherein up to one methylene unit of the ring is optionally replaced with O, NH, N(C 1-4 alkyl), S, C, S, or S 2; and each J A independently is halogen, CN, -OH, -O(C 1-4 alkyl), or -O(C 1-4 haloalkyl); each J B independently is halogen, -CN, -OH, -O(C 1-4 alkyl), -O(C 1-4 haloalkyl), C 1-4 alkyl, or C 1-4 haloalkyl; and each J Ph independently is halogen, -CN, -OH, -O(C 1-4 alkyl), -O(C 1-4 haloalkyl), C 1-4 alkyl, or C 1-4 haloalkyl