The gatekeepers and their descendants had to guard the gates of the Temple of the Lord. (The Temple took the place of the Holy Tent.)