The hamstrings are a group of three muscles located at the back of the thigh. Their tendons connect at the hip and attach to the lower leg bones near the knee. The hamstrings are the main muscle group that bends the knee, but they also help control motion at the hip needed for everyday movements.