Passes through the deep inguinal ring and enters the inguinal canal, innervates the cremaster muscle and the skin of the scrotum.