Learner's definition of ILLEGAL
1 : not allowed by the law: not legal
illegal [=illicit, unlawful] drugs
In this state, it is illegal for anyone under the age of 21 to drink alcohol.
an illegal alien/immigrant [=a foreign person who is living in a country without having official permission to live there]
2 : not allowed by the rules in a game