Mark 6:1 follows on directly from Mark 5:43, where Jesus was at the house of Jairus, one of the rulers in the synagogue. We are not explicitly told that this was in Capernaum but it is the most likely place (see Mark 1:21, Mark 1:29; Mark 2:1; Mark 3:20; Mark 4:1, Mark 4:35; Mark 5:1, Mark 5:21).
1 He went away from there and came to his hometown, and his disciples followed him.