The hamstrings are the muscles that form the back of the thigh. They allow you to flex your knee and hip.