Grinding teeth can occur while sleeping and even subconsciously during the day. The cause can vary from stress to misaligned teeth and more. While a mouthguard can help prevent further teeth grinding, a patient may need oral surgery to address the current damage from teeth grinding. In fact, grinding the teeth can affect the functions of the temporomandibular joints, making it difficult to open the mouth, eat, and more.