In the apocryphal Gospel of James, Joachim was the husband of Saint Anne and the father of the Virgin Mary.