The story of this encounter of the Virgni's parents appears in the apocryphal Gospel of James. Joachim is described as a rich and pious man who regularly gives to the poor and the temple. However, the couple are childless and feel sorry about this. When Joachim goes to a religious festival in Jerusalem, the High Priest refuses to allow him to give his offerings because of his infertility, which is seen as a sign that he is under the curse of the Law. Joachim, not daring to return home, withdraws into the desert. One day, an angel appears to Joachim and Anne, promising them a child. Joachim returns to Jerusalem and Anne goes to meet him. They meet at the Golden Gate, one of the city gates. Joachim and Anne then "embrace" each other.