The hamstring is a group of three muscles that run along the back of the thigh. These muscles allow the leg to bend at the knee. The hamstring is strained when one or more muscles are overworked. The hamstring can also tear when muscle fibers break. Hamstring strains and tears can be a result of activities that require jumping, or sudden stopping and starting.