Teeth griding also known as Bruxism is caused in 2 main ways:
1. sleeping disorders- when we grind the teeth subconsciously. Then there's some kind of devise that you sleep with that can be the solution- see here.
2. due to stress- when we consciously grind the teeth. The best way to deal with that is some kind of psychology treatment like: stress relieving lessons, anxiety treatment and more.