The primary cause of retinoblastoma is mutations in the RB1 gene. This gene is responsible for producing a protein that helps regulate cell growth. When the RB1 gene is mutated, cells can grow uncontrollably, leading to cancer. In hereditary cases, a defective RB1 gene is passed from parent to child, while in non-hereditary cases, the mutation occurs spontaneously.