This review explores how dietary patterns affect gut microbiota and contribute to the development of MASLD.