Illegal
If a card is illegal, it means it cannot ever be used in tournament play or other official Duels. Illegal cards may only be used in casual play at the agreement of all participants. In general, official cards which are illegal can be distinguished by the presence of Limitation Text (most commonly "This card cannot be used in a Duel.") where the passcode would be normally placed, in the card's lower left-hand corner. All unofficial and counterfeit cards are also illegal.
TCG
OCG
Anime
It is mentioned that "Golden Castle of Stromberg", "Infernalvania" and "Binding Swords of Impact" are illegal cards not intended for use.
In Yu-Gi-Oh! ARC-V it is shown that if an illegal card is used, the duel will automatically end.[1]