Liver stiffness and severe fibrosis are independently associated with type 2 diabetes in patients with metabolic dysfunction-associated steatotic liver disease (MASLD).