Used to describe something not recognized by law.
El niño se sintió ilegítimo al enterarse de la verdad sobre su familia.
The boy felt illegitimate upon learning the truth about his family.
El hijo ilegítimo del rey fue rechazado por la corte debido a su origen.
The king's illegitimate son was rejected by the court due to his origin.