illegality (n.)

quality of being illegal," 1630s, from illegal (adj.) + -ity; or else from French illegalité (14c.).