by Todd Elder at Exploring Creation
This particualar prophecy is slightly theoretical due to a limited amount of source information, but it may provide an understanding of why Joseph and Mary were getting married. If we look at Mat 1:16 in the Aramaic Peshitta, it says "And Jacob begat Joseph the protectorate of Mary,". Instead of simply saying husband, the word used to describe Joseph is 'protectorate'. This has a meaning much more like that of a 'kinsman redeemer' than it does simply a husband or a man. One can think back to the example of Boaz and Ruth to get one example of a kinsman redeemer relationship. We do not know the exact circumstances of this couple but, by all accounts, it appears that Yosef was probably an older man and Miriam was a young virgin. If there was a reason that Miriam had to marry within her own tribe, such as with the inheritance laws, or had need of being redeemed by a close family member then that brings an interesting point to the adoption of Yahshuah.
A Kinsman redeemer had the responsiblity of raising up the first child for another person even including the rights of the firstborn. Yosef was in the position of raising a firstborn son who was genetically not his own but who would receive the firstborn right of the inheritance to the throne.