The causes of autoimmunity are unknown. Experts have linked several triggers to autoimmunity, such as stress, a diet high in refined sugars and carbohydrates, a lack of physical exercise, poor sleeping habits, and excessive smoking or drinking. Certain genetic factors may also increase the risk of autoimmunity. Autoimmune conditions tend to run in the family. A person with a family history of any autoimmune disorder, not just type 1 diabetes, may be at an increased risk. Certain viruses or illnesses may also be linked to type 1 diabetes.