is fat one of the causes of diabetes?

how does fat cause diabetes and what happen if it is not taken care of?