SCD is caused by a mutation in the HBB gene that codes for the beta-globin subunit of hemoglobin. This mutation results in the substitution of the amino acid valine for glutamic acid at the sixth position of the beta-globin chain. The abnormal hemoglobin S polymerizes under low oxygen conditions, leading to the characteristic sickle shape of the red blood cells.