Everyone had to go to their own hometown to register.
Around this time Caesar Augustus made a law that required everyone in the whole Roman world to register for taxation and military service.
This was the first time a registration was required, and it happened while Quirinius was governor of Syria.
Because Joseph was from the family line of David, he went from Nazareth in Galilee to Judea so he could register there in Bethlehem, the town of David.
He went with Mary, who was engaged to him and who was expecting a child.