In patients with diabetes, endoplasmic reticulum stress (ERS) is a crucial disrupting factor of macrophage homeostasis surrounding implants, which remains an obstacle to oral implantation success. Notably, the ERS might be modulated by the implant surface morphology. Titania nanotubes (TNTs) may enhance diabetic osseointegration. However, a consensus has not been achieved regarding the tube-size-dependent effect and the underlying mechanism of TNTs on diabetic macrophage ERS. We manufactured TNTs with small (30 nm) and large diameters (100 nm). Next, we assessed how the different titanium surfaces affected diabetic macrophages and regulated ERS and Ca 2+ homeostasis. TNTs alleviated the inflammatory response, oxidative stress, and ERS in diabetic macrophages. Furthermore, TNT30 was superior to TNT100. Inhibiting ERS abolished the positive effect of TNT30. Mechanistically, topography-induced extracellular Ca 2+ influx might mitigate excessive ERS in macrophages by alleviating ER Ca 2+ depletion and IP3R activation. Furthermore, TNT30 attenuated the peri-implant inflammatory response and promoted osseointegration in diabetic rats. TNTs with small nanodiameters attenuated ERS and re-established diabetic macrophage hemostasis by inhibiting IP3R-induced ER Ca 2+ depletion.