The hamstrings consist of a group of muscles that run down the back side of the upper leg. Together, they work to flex or bend the knee joint and to extend the hip joint. It's important to adequately develop your hamstrings, as they're susceptible to injuries during sports and other physical activities if they lack strength.