He was betrothed to the Virgin Mary at the time that Mary conceived Jesus. Luke says that he lived at Nazareth in Galilee (Luke 2:4); however, according to Matthew, it was only after the return from Egypt that he settled in Nazareth (Matthew 2:23). He is called a "just man." He was by trade a carpenter (Matthew 13:55). He is last mentioned in connection with the journey to Jerusalem, when Jesus was twelve years old. It is probable that Joseph died before Jesus entered on his public ministry because only Mary was present at the marriage feast in Cana of Galilee, and he is not described at the crucifixion along with Mary (John 19:25). He is said to be the father of James, Joses, Jude, and Simon, and several daughters (Mark 6:3; Matthew 13:55); a tradition at least as early as the second century explains that these children were from his marriage to an unnamed woman, before Joseph married Mary.
That Jesus commended Mary to the care of John the Evangelist while he was hanging on the cross has been interpreted to also suggest that Joseph had died by that time, and that Joseph and Mary did not have any other children who might care for Mary.
In many icons of the Nativity, Joseph is shown being tempted by the Devil (depicted as an old man with furled wings) to break off his betrothal, and resisting that temptation.