Flexi Says: The muscles on the back of legs, is the hamstrings. The muscles on the front of legs, directly opposite the hamstrings are the quadriceps. The hamstrings and quadriceps work together as a pair to move your legs back and forth while you run.