Genetics can significantly influence various aspects of sleep, including sleep quality, duration, and susceptibility to sleep disorders. Specific genetic mutations and polymorphisms have been linked to conditions like insomnia, narcolepsy, and restless legs syndrome. Variations in genes that regulate circadian rhythms, such as the CLOCK and PER genes, also affect sleep patterns.