A compound having Formula II: or a pharmaceutically acceptable salt or hydrate thereof, wherein: R 1 is selected from the group consisting of hydrogen and C 1-4 alkyl; R 2a and R 2b are each independently selected from the group consisting of hydrogen, C 1-4 alkyl, (alkoxycarbonyl)alkyl, and -CH 2 C(=O)NR 19a R 19b; R 3 is selected from the group consisting of unsubstituted or substituted C 6-14 aryl, wherein the substituents are halo, nitro, cyano, hydroxy, amino, haloalkyl, alkoxy, haloalkoxy, or alkyl; and unsubstituted or substituted 5- to 14-membered heteroaryl, wherein the substituents are halo, nitro, cyano, hydroxy, amino, haloalkyl, alkoxy, haloalkoxy, or alkyl; R 4 is selected from the group consisting of hydrogen and C 1-4 alkyl; B is selected from the group consisting of: L is selected from the group consisting of alkylenyl, heteroalkylenyl, -A-(CH 2) m -W-(CH 2) n -, -(CH 2) m -W-(CH 2) u -O-(CH 2) v --, and -(CH 2) m -W-[(CH 2) w -O] x -(CH 2) v -; A is selected from the group consisting of 5-membered heteroarylenyl and 6-membered heteroarylenyl; or A is absent; W is selected from the group consisting of phenylenyl, 5-membered heteroarylenyl, 6-membered heteroarylenyl, heterocyclenyl, and cycloalkylenyl; m is 0, 1, 2, 3, 4, 5, 6, or 7; n is 0, 1, 2, 3, 4, 5, 6, 7, or 8; u is 0, 1, 2, or 3; v is 1, 2, 3, or 4; each w is independently 2, 3, or 4; x is 2, 3, or 4; X is selected from the group consisting of -C≡C-, -CH 2 -, -O-, -N(R 2c)-, -C(=O)N(R 2d)-, -N(R 2e)C(=O)CH 2 O-, and -N(R 2f)C(=O)CH 2 N(R 2g)-; or X is absent; wherein the carboxamide nitrogen atom of -N(R 2e)C(=O)CH 2 O- and -N(R 2f)C(=O)CH 2 N(R 2g)-, and the carbon atom of -C(=O)N(R 2d)- is attached to L; R 2c, R 2d, R 2e, R 2f, and R 2g are each independently selected from the group consisting of hydrogen and C 1-4 alkyl; Z is selected from the group consisting of -CH 2 and -C(=O)-; R 5 is selected from the group consisting of hydrogen, methyl, and fluoro; A 1 is selected from the group consisting of -C(R 16a)= and -N=; A 2 is selected from the group consisting of -C(R 16b)= and -N=; A 3 is selected from the group consisting of -C(R 16c)= and -N=; R 16a is selected from the group consisting of hydrogen, halo, and C 1-4 alkyl; R 16b is selected from the group consisting of hydrogen, halo, and C 1-4 alkyl; R 16c is selected from the group consisting of hydrogen, halo, and C 1-4 alkyl; and R 19a and R 19b are independently selected from the group consisting of hydrogen, C 1-6 alkyl and unsubstituted or substituted C 6-14 aryl, wherein the substituents are halo, nitro, cyano, hydroxy, amino, haloalkyl, alkoxy, haloalkoxy, or alkyl; or R 19a and R 19b taken together with the nitrogen atom to which they are attached form a 4- to 8-membered heterocyclo. R 1 is selected from the group consisting of hydrogen and C 1-4 alkyl; R 2a and R 2b are each independently selected from the group consisting of hydrogen, C 1-4 alkyl, (alkoxycarbonyl)alkyl, and -CH 2 C(=O)NR 19a R 19b; R 3 is selected from the group consisting of unsubstituted or substituted C 6-14 aryl, wherein the substituents are halo, nitro, cyano, hydroxy, amino, haloalkyl, alkoxy, haloalkoxy, or alkyl; and unsubstituted or substituted 5- to 14-membered heteroaryl, wherein the substituents are halo, nitro, cyano, hydroxy, amino, haloalkyl, alkoxy, haloalkoxy, or alkyl; R 4 is selected from the group consisting of hydrogen and C 1-4 alkyl; B is selected from the group consisting of: L is selected from the group consisting of alkylenyl, heteroalkylenyl, -A-(CH 2) m -W-(CH 2) n -, -(CH 2) m -W-(CH 2) u -O-(CH 2) v --, and -(CH 2) m -W-[(CH 2) w -O] x -(CH 2) v -; A is selected from the group consisting of 5-membered heteroarylenyl and 6-membered heteroarylenyl; or A is absent; W is selected from the group consisting of phenylenyl, 5-membered heteroarylenyl, 6-membered heteroarylenyl, heterocyclenyl, and cycloalkylenyl; m is 0, 1, 2, 3, 4, 5, 6, or 7; n is 0, 1, 2, 3, 4, 5, 6, 7, or 8; u is 0, 1, 2, or 3; v is 1, 2, 3, or 4; each w is independently 2, 3, or 4; x is 2, 3, or 4; X is selected from the group consisting of -C≡C-, -CH 2 -, -O-, -N(R 2c)-, -C(=O)N(R 2d)-, -N(R 2e)C(=O)CH 2 O-, and -N(R 2f)C(=O)CH 2 N(R 2g)-; or X is absent; wherein the carboxamide nitrogen atom of -N(R 2e)C(=O)CH 2 O- and -N(R 2f)C(=O)CH 2 N(R 2g)-, and the carbon atom of -C(=O)N(R 2d)- is attached to L; R 2c, R 2d, R 2e, R 2f, and R 2g are each independently selected from the group consisting of hydrogen and C 1-4 alkyl; Z is selected from the group consisting of -CH 2 and -C(=O)-; R 5 is selected from the group consisting of hydrogen, methyl, and fluoro; A 1 is selected from the group consisting of -C(R 16a)= and -N=; A 2 is selected from the group consisting of -C(R 16b)= and -N=; A 3 is selected from the group consisting of -C(R 16c)= and -N=; R 16a is selected from the group consisting of hydrogen, halo, and C 1-4 alkyl; R 16b is selected from the group consisting of hydrogen, halo, and C 1-4 alkyl; R 16c is selected from the group consisting of hydrogen, halo, and C 1-4 alkyl; and R 19a and R 19b are independently selected from the group consisting of hydrogen, C 1-6 alkyl and unsubstituted or substituted C 6-14 aryl, wherein the substituents are halo, nitro, cyano, hydroxy, amino, haloalkyl, alkoxy, haloalkoxy, or alkyl; or R 19a and R 19b taken together with the nitrogen atom to which they are attached form a 4- to 8-membered heterocyclo.