Massage and physical therapy can also help loosen tight hamstrings. The hamstrings are a group of muscles around the back of your thigh, which starts from the pelvis and reaches your knee.