👉 In sports, a hamstring is a muscle that stretches and tightens when it's flexed. When this muscle gets stretched or tightened too much, it can cause pain, swelling, and sometimes discomfort in the knee and ankle region. This condition is often referred to as hamstringing.