Stretch Your Hamstrings and Back The classic, standing toe-touch exercise primarily stretches your hamstrings, the three-muscle group in the back of each thigh. This exercise also works the erector-spinae muscles in your lower back. Do the exercise by standing with your legs straight and your feet together.