The hard palate is the solid, immovable area of the roof of the mouth that attaches to the teeth and gums, forming an arch. The soft palate, located behind the hard palate towards the back of the throat, is the flexible area of the mouth where the gag reflex occurs.