The gluteus medius is a muscle located at the sides of the hips. It moves the leg out to the side and helps stabilize the pelvis to maintain good alignment of the hips and knees. Pain in the gluteus medius often results from the muscle being too weak or when the muscle is overused. Gluteus medius pain can also stem from low-back problems.
Source: Verywell health