On that day the people were joyful and ate and drank while Yahweh was watching. Then for the second time they declared that Solomon was now the king. While Yahweh was watching, they anointed him with olive oil to be the king, and they anointed Zadok to be the Supreme Priest.