After all the land was divided among the tribes, the Israelites gave a piece of land to Joshua as his allocation.
For the had said he could have any town he wanted. He chose Timnath-serah in the hill country of Ephraim. He rebuilt the town and lived there.
These are the territories that Eleazar the priest, Joshua son of Nun, and the tribal leaders allocated as grants of land to the tribes of Israel by casting sacred lots in the presence of the at the entrance of the Tabernacle at Shiloh. So the division of the land was completed.
References for Joshua 19:51