Between January 2007 and May 2015, 5956 men aged 40–89 years diagnosed with type 2 diabetes before 2007 were identified from anonymised electronic health records of 42 general practices in Cheshire, UK, and were followed for 7.5 years. HRs from multivariable survival (accelerated failure time, Weibull) models were used to describe the association between on-demand PDE5i use and all-cause mortality.