The muscles down the back of the thigh are known as your hamstring muscles, and are attached to the pelvic bone and back of the knee. The hamstring is responsible for bending the knee and extending the leg backwards, with the majority of activity being required during running, walking and kicking.
A strain to the hamstring occurs when the muscles are torn, and is a common sports injury.