Everything we know about the husband of Mary and the foster father of Jesus comes from Scripture and that has seemed too little for those who made up legends about him.
We know he was a carpenter, a working man, for the skeptical Nazarenes ask about Jesus, “Is this not the carpenter’s son?” (Matthew 13:55). He wasn’t rich for when he took Jesus to the Temple to be circumcised and Mary to be purified he offered the sacrifice of two turtledoves or a pair of pigeons, allowed only for those who could not afford a lamb (Luke 2:24).
Despite his humble work and means, Joseph came from a royal lineage. Luke and Matthew disagree some about the details of Joseph’s genealogy but they both mark his descent from David, the greatest king of Israel (Matthew 1:1-16 and Luke 3:23-38). Indeed the angel who first tells Joseph about Jesus greets him as “son of David,” a royal title used also for Jesus.
We know Joseph was a compassionate, caring man. When he discovered Mary was pregnant after they had been betrothed, he knew the child was not his but was as yet unaware that she was carrying the Son of God. He knew women accused of adultery could be stoned to death, so he resolved to send her away quietly to not expose her to shame or cruelty. However, when an angel came to Joseph in a dream and told him, 20 “Joseph son of David, do not be afraid to take Mary home as your wife, because what is conceived in her is from the Holy Spirit. 21 She will give birth to a son, and you are to give him the name Jesus, because he will save his people from their sins,” he did as the angel told him and took Mary as his wife. (Matthew 1:19-25).