Ahithophel was adviser to the king, and Hushai the Archite was the king's friend and counsellor.