The hamstrings are the muscles located in the back of the thigh. There are three different muscles that make up the hamstring group and are responsible for extending the hip and bending or flexing the knee. Tight hamstrings can also cause lower back pain.