The iliohypogastric nerve is the superior branch of the anterior ramus of spinal nerve L1 (one of the lumbar nerves) after this nerve receives fibers from T12 (subcostal nerve). The inferior branch is the ilioinguinal nerve.