The present invention provides indazole and aza indazole compounds of formula (I) or (II) and pharmaceutically acceptable salts thereof, and their use to inhibit IRAK-4 and/or for the treatment of diseases or disorders induced by IRAK-4.La presente invención provee compuestos de indazol y azaindazol de fórmula (I) o (II), y sales farmacéuticamente aceptables de estos, y su uso para inhibir IRAK-4 y/o para el tratamiento de enfermedades o trastornos inducidos por IRAK-4.