The internal spermatic fascia, which is the deepest layer, arises from the transversalis fascia and is attached to the margins of the deep inguinal ring.
The cremasteric fascia with the associated cremasteric muscle, which is the middle fascial layer, arises from the internal oblique muscle.