The aim of the present study was to evaluate the duration of protective immunity against Porcine epidemic diarrhoea virus (PEDV). To do so, a two phases study was performed. In the first phase, 75 four‐week‐old pigs (group A) were orally inoculated (0 days post‐inoculation; dpi) with a European PEDV G1b strain and 14 were kept as controls (group B). The second phase started five months later (154 dpi), when animals in group A were homologous challenged and animals in group B were challenged for first time. Clinical signs, viral shedding and immune responses were evaluated after each inoculation, including the determination of antibodies (ELISA and viral neutralization test, IgA and IgG ELISPOTs using peripheral blood mononuclear cells and lymph node cells) and the frequency of interferon‐gamma (IFN‐γ) secreting cells. During the first phase, loose stools/liquid faeces were observed in all group A animals. Faecal shedding of PEDV occurred mostly during the first 14 days but, in some animals, persisted until 42 dpi. All inoculated animals seroconverted for specific‐PEDV IgG and IgA, and for neutralizing antibodies (NA). At 154 dpi, 77% of pigs were still positive for NA. After that, the homologous challenge resulted in a booster for IgG, IgA, NA, as well as specific‐PEDV IgG, IgA and IFN‐γ secreting cells. In spite of that, PEDV was detected in faeces of all pigs from group A, indicating that the immune response did not prevent reinfection, although the duration of the viral shedding and the total load of virus shed were significantly lower for previously challenged pigs (p < .05). Taken together, the results indicated that, potentially, maintenance of PEDV infection within an endemic farm may occur by transmission to and from previously infected animals and also indicates that sterilizing immunity is shorter than the productive life of pigs.