The Levites who were relatives of the Korahites and the Merarites were in charge of guarding the temple treasury and the gifts that had been dedicated to God.