A Mexican citizen who was living in Nacogdoches illegally has pleaded guilty to federal weapon and immigration offenses.