Eating too much sugar will directly cause you to develop diabetes.
While sugar consumption may contribute to weight gain and poor metabolic health, diabetes is complex and involves genetics, insulin resistance, lifestyle, and inflammation. People can eat high-sugar diets without developing diabetes, while others develop it despite low sugar intake. Type 1 diabetes is autoimmune; Type 2 involves multiple metabolic factors beyond just sugar consumption.