21 The fiftieth anniversary of the definition of the dogma of the Immaculate Conception of the Blessed Virgin gave Saint Pius X occasion to bear witness in a solemn document to the historic connection between this act of the Magisterium and the apparitions at Lourdes. "Pius IX," he wrote, "had hardly defined it to be of Catholic faith that Mary was from her very origin exempt from sin, when the Virgin herself began performing miracles at Lourdes."
Source: Le Pelerinage de Lourdes (Vatican.va)