Joseph was Mary's husband and the earthly guardian of Jesus. He was of the house of David and a carpenter by trade. Joseph was a just and godly man who obediently followed God's commands. When he discovered Mary was pregnant, he was confused since the child was not his own, but an angel appeared to Joseph in a dream and told him the child was conceived by the Holy Spirit. Joseph then took Mary into his home as his wife. The passage focuses on Joseph's character and role in God's plan rather than providing many details about him as the focus is on Jesus.