The tribes that were the descendants of Merari got 12 cities. They got the cities from the tribes of Reuben, Gad, and Zebulun. They got them by throwing lots.