N-nitrosodiethylamine (NDEA) is a potential carcinogen known to cause liver tumors and chronic inflammation, diabetes, cognitive problems, and signs like Alzheimer's disease (AD) in animals. This compound is classified as probably carcinogenic to humans. Usual sources of exposure include food, beer, tobacco, personal care products, water, and medications. AD is characterized by cognitive decline, amyloid-β (Aβ) deposit, tau hyperphosphorylation, and cell loss. This is accompanied by neuroinflammation, which involves release of microglial cytokines, such as tumor necrosis factor-alpha (TNF-α), interleukin-6 (IL-6), and interleukin 1β (IL-1β), by nuclear factor kappa B (NF-κB) upregulation; each are linked to AD progression. Weak PI3K/Akt insulin-signaling inhibits IRS-1 phosphorylation, activates GSK3β and promotes tau hyperphosphorylation. Metformin, an antihyperglycemic agent, has potent anti-inflammatory efficacy. It reduces proinflammatory cytokines such as IL-6, IL-1β, and TNF-α via NF-κB inhibition. Metformin also reduces reactive oxidative species (ROS) and modulates cognitive disorders reported due to brain insulin resistance links. Our study examined how NDEA affects spatial memory in Wistar rats. We found that all NDEA doses tested impaired memory. The 80 µg/kg dose of NDEA increased levels of Aβ1-42, TNF-α, and IL-6 in the hippocampus, which correlated with memory loss. Nonetheless, treatment with 100 mg/kg of metformin attenuated the levels of pro-inflammatory cytokines and Aβ1-42, and enhanced memory. It suggests that metformin may protect against NDEA-triggered memory issues and brain inflammation.