Rett syndrome is usually caused by mutations in the MECP2 gene, located on the X chromosome. This gene is crucial for the development of the nervous system and brain function. While the condition is genetic, it is rarely inherited. Most cases are the result of spontaneous mutations.