Thalassemia is caused by mutations in the genes responsible for producing hemoglobin. These mutations can be inherited from one or both parents. If both parents carry thalassemia genes, their child has a higher chance of inheriting a more severe form of the disorder.