Alpha thalassemia occurs when there is a defect in the production of alpha globin, while beta-thalassemia is caused by defects in the production of beta-globin.