For some infectious diseases such as mumps,HBV,there is evidence showing that vaccinated individuals always lose their immunity at different rates depending on the inoculation time.In this paper,we propose an age-structured epidemic model using a step function to describe the rate at which vaccinated individuals lose immunity and reduce the age-structured epidemic model to the delay differential model.For the age-structured model,we consider the positivity,boundedness,and compactness of the semiflow and study global stability of equilibria by constructing appropriate Lyapunov functionals.Moreover,for the reduced delay differential equation model,we study the existence of the endemic equilibrium and prove the global stability of equilibria.Finally,some numerical simulations are provided to support our theoretical results and a brief discussion is given.