The piriformis muscle arises form the posterior ilium and inserts on the greater trochanter of the femur and functions to abduct and rotate the thigh outward.