Abstract In recent years, researchers have been utilizing nanotechnology more and more to study diabetic complications, with a particular emphasis on prevention and treatment. In this investigation, we analyzed the effects of Acroptilon repens extract on iron nanoparticles (FeNPs), which demonstrated significant anti-diabetic characteristics both in living organisms and in laboratory settings. To assess the effectiveness of the FeNPs produced through the interaction of iron salt solutions stabilized by A. repens extract, we utilized a range of methodologies. The FeNPs were manufactured in a spherical shape, ranging in size from 10 to 60 nm. During the in vivo experiment, gestational diabetes was induced through streptozotocin (STZ) intraperitoneal injection. The animals were then categorized into four groups: FeNPs-60 μg/kg group, FeNPs-120 μg/kg group, normal pregnancy group, and gestational diabetes mellitus group (n = 10). FeNPs were administered intragastrically for 25 days. On the final day, the levels of ALP, AST, ALT, and blood glucose in the serum samples were assessed. Following tissue processing, 5 μm liver sections were prepared and the overall volume of the hepatic arteries, bile ducts, central vein, portal vein, sinusoids, hepatocytes, and liver, were approximated. FeNPs have the potential to reduce the elevated levels of ALP and AST enzymes. In gestational diabetes rats, the administration of FeNPs lead to a decrease in blood glucose levels. The administration of STZ significantly increased the volume of sinusoids and hepatocytes. However, after the treatment with a high dose of FeNPs, there was a notable decrease in their volume. In contrast, the volume of the bile ducts and portal vein remained unchanged in the experimental groups. Nevertheless, the volume of the hepatic arteries and central vein exhibited changes due to the presence of FeNPs. The current study showcases the hepatoprotective and anti-diabetic characteristics of FeNPs, providing a potential option as a supplement to prevent gestational diabetes mellitus while also offering hepatoprotective benefits.