To enhance postoperative patient survival, particularly in older adults, understanding the predictors of mortality following hip fracture becomes paramount. Air pollution, a prominent global environmental issue, has been linked to heightened morbidity and mortality across a spectrum of diseases. Nevertheless, the precise impact of air pollution on hip fracture outcomes remains elusive. This retrospective study aims to comprehensively investigate the profound influence of a decade-long exposure to 12 diverse air pollutants on the risk of post-hip fracture mortality among older Taiwanese patients (older than 60 years). We hypothesized that enduring long-term exposure to air pollution would significantly elevate the 1-year mortality rate following hip fracture surgery. From Taiwan's National Health Insurance Research Database, we obtained the data of patients who underwent hip fracture surgery between July 1, 2003, and December 31, 2013. Using patients' insurance registration data, we estimated their cumulative exposure levels to sulfur dioxide (SO2), carbon dioxide (CO2), carbon monoxide (CO), ozone (O3), particulate matter having a size of <10 μm (PM10), particulate matter having a size of <2.5 μm (PM2.5), nitrogen oxides (NOX), nitrogen monoxide (NO), nitrogen dioxide (NO2), total hydrocarbons (THC), nonmethane hydrocarbons (NMHC), and methane (CH4). We quantified the dose-response relationship between these air pollutants and the risk of mortality by calculating hazard ratios associated with a 1 SD increase in exposure levels over a decade. Long-term exposure to SO2, CO, PM10, PM2.5, NOX, NO, NO2, THC, NMHC, and CH4 demonstrated significant associations with heightened all-cause mortality risk within 1 year post hip fracture surgery among older adults. For older adults, each 1 SD increment in the average exposure levels of SO2, CO, PM10, PM2.5, NOX, NO, NO2, THC, NMHC, and CH4 corresponded to a substantial escalation in mortality risk, with increments of 14%, 49%, 18%, 12%, 41%, 33%, 38%, 20%, 9%, and 26%, respectively. We further noted a 35% reduction in the hazard ratio for O3 exposure suggesting a potential protective effect, along with a trend of potentially protective effects of CO2. This comprehensive nationwide retrospective study, grounded in a population-based approach, demonstrated that long-term exposure to specific air pollutants significantly increased the risk of all-cause mortality within 1 year after hip fracture surgery in older Taiwanese adults. A reduction in the levels of SO2, CO, PM10, PM2.5, NOX, NO, NO2, THC, NMHC, and CH4 may reduce the risk of mortality after hip fracture surgery. This study provides robust evidence and highlights the substantial impact of air pollution on the outcomes of hip fractures.