The motor component of the rectus muscles comes from the last intercostal nerves (T7-T11) and the subcostal nerve (T12).

These nerves also innervate the upper part of the flat muscles. The lower part is innervated by two branches arising from L1 and belonging to the lumbar plexus (See the lesson on the lumbar plexus), called the abdominogenital nerves, which run through the abdominal wall from back to front and downwards:
- The upper one is called the iliohypogastric nerve, which reaches the hypogastric region, to which it provides sensory innervation.
- The lower one, the ilioinguinal nerve, provides sensory innervation to the hypogastric area, the pubic area and the external genitalia.
