Joachim was, according to Sacred tradition, the husband of Saint Anne, the father of Mary (mother of Jesus), and the maternal grandfather of Jesus. The story of Joachim and Anne first appears in the Gospel of James, part of the New Testament apocrypha. His feast day is 26 July, a date shared with Saint Anne. In Catholic tradition. The story of Joachim, his wife Anne (or Anna), and the miraculous birth of their child Mary, the mother of Jesus, was told for the first time in the 2nd-century apocryphal infancy-gospel the Gospel of James (also called the Protoevangelium of James).
https://en.wikipedia.org/wiki/Joachim