Joseph became the husband of Mary and father to Jesus.
At first though, he was of the mind to not get married, since Mary was with child. Joseph decided to do what God wanted; not what he thought he should do.
Joseph reminds us of the importance of seeking God's will.
When Joseph woke up, he did what the angel of the Lord had
commanded him and took Mary home as his wife. - Matthew 1:24