He went to register with Mary, who was promised in marriage to him. She was pregnant,
At that time Emperor Augustus ordered a census to be taken throughout the Roman Empire.
Everyone, then, went to register himself, each to his own hometown.
Joseph went from the town of Nazareth in Galilee to the town of Bethlehem in Judea, the birthplace of King David. Joseph went there because he was a descendant of David.
and while they were in Bethlehem, the time came for her to have her baby.