In walking, gravity tends to tilt pelvis and trunk to the unsuppoed side, major factor in preventing this unwanted movements
High-Yield Explanation
Gluteus medius and minimus prevent the tilting of pelvis on the unsuppoed side Gluteus medius and minimus supplied by superior gluteal nerve