Zadok first appears among priests and leaders associated with
David. During Absalom's rebellion, Zadok and Abiathar brought the ark from Jerusalem, but David ordered them to return it and use their sons as messengers. Zadok remained loyal again during Adonijah's attempt to seize the throne and, at David's command, joined Nathan and Benaiah in anointing
Solomon king at Gihon. Solomon later removed Abiathar from the priesthood and appointed Zadok in his place. Chronicles preserves Zadok within the Aaronic priestly genealogy, and later biblical tradition associates legitimate Jerusalem priesthood with his descendants.