On the flanks of the body, medial to the rectus femoris, the abdominal wall is composed of three layers. The external oblique muscles form the outermost layer, while the internal oblique muscles form the middle layer, and the transverses abdominus forms the innermost layer.