The hamstring muscles are responsible for your hip and knee movements in walking, squatting, bending your knees, and tilting your pelvis. Hamstring muscle injuries are the most common sports injury.
Below the end of the spine near the pelvic bones are the deep gluteal muscles. These are all associated with the thigh, whether rotating it, pulling it away from the body, or stabilizing the hip joint ...