Provided are compounds of Formula (I), or pharmaceutically acceptable salts thereof, wherein i.a. Ring A is phenylene or 5- to 6-membered heteroarylene Ring B is phenylene, 5- to 6-membered heterocycloalkylene or 5- to 6-membered heteroarylen R4 is absent, heteroarylene, arylene, C1-3 alkylene, or R4 and R3 taken together with the nitrogen to which they are bound form a 3- to 7-membered heterocycloalkyl ring R5 is absent, C(0)NR51, NR52 or 0 R6 is C2-10 alkylene or alkenylene, wherein one or two of the carbon atoms in the alkylene chain is optionally replaced by an 0, S, SO, SO2 or NR61, and wherein two of the carbon atoms in the alkylene chain are optionally connected by a two or three carbon atom alkylene chain to form a 5- to 7-membered ring R7 is absent, NR71 or O. The compounds are IRAK4 inhibitors useful for the treatment of inflammatory diseases.