Toxicants can disrupt the function of insulin and glucagon through various mechanisms. For instance, heavy metals like arsenic and cadmium can impair pancreatic beta-cell function, reducing insulin secretion and leading to hyperglycemia. Similarly, certain pesticides have been shown to alter glucagon secretion, disrupting the balance of glucose homeostasis.