The hamstrings are a group of muscles and tendons at the back of your upper leg. There are three muscles: the semitendinosus, the semimembranosus, and the biceps femoris. These are very strong muscles that are essential for jumping, running, and walking. Tendons attach the hamstring muscles to the hip bone, the shaft of the femur (the upper leg bone), and the top of the tibia and fibula (the lower leg bones). In sports, the hamstring tendons can become painfully inflamed, a condition that is called hamstring tendonitis.