Die woordeboekbetekenis van die woord "onwettig" is iets wat nie deur die wet toegelaat word nie of teen die wet is. Dit verwys na 'n handeling of aktiwiteit wat deur die wet van 'n land of staat verbied word. 'n Daad of gedrag wat onwettig is, kan onderhewig wees aan wetlike strawwe of sanksies, soos boetes, gevangenisstraf of ander vorme van straf.