The primary function of a retainer is to prevent your teeth from moving against each other. This helps to reduce the amount of grinding and clenching your jaw muscles do, which can help improve the health of your jaw muscles and reduce the pain you feel when you're wearing a retainer.