To gnash means to grind or clench together, especially teeth, as a sign of anger, frustration, or pain.