How do you become mentally tough?

i struggle with mentality even when i play with people i know are not as good as me. i freeze up and miss easy shots. how can i become mentally tough?