Trismus (Greek τρισμος, trismos, "a grinding") is a pathological, sustained spasm of the neck and masseter (jaw) muscles that can make it difficult or impossible to open the mouth. It is most often associated with tetanus.
Lockjaw is a non-technical term that can refer both to trismus itself and to the most common cause of trismus, the disease tetanus.