This question already has an answer here:

Not much was mentioned about Jesus's foster-father. Mary visited Jesus, but where was Joseph at when Jesus was being crucified?

merged by Nathaniel is protesting Mar 20 '17 at 15:57

This question was merged with What happened to Joseph, Jesus' father? because it is an exact duplicate of that question.