The hamstring is a term that refers to a group of muscles that are located in the upper part of the leg. This is a common sports injury in which the muscles that lie at the back of the thigh, are subjected to violent contractions, that cause forcible tearing of the muscles. A pulled hamstring can affect any one of the three muscles and is marked by swelling and pain, thereby making it difficult to carry out day-to-day routine.