Nocturnal erection, also called automatic erection or spontaneous erection is a male erection occurring during sleep. Every healthy man, from childhood and up to about 70 years, experiences these erections at night while you sleep. They are called spontaneous or automatic erections because they occur without any kind of stimulation.