What is the quality or condition of being illegal; unlawfulness; as, the illegality of trespass or of false imprisonment; also, an illegal act called?

illegality — The quality or condition of being illegal; unlawfulness; as, the illegality of trespass or of false imprisonment; also, an illegal act. (Webster's 1913.)

Sources