Answer
William served as a chancellor for King Amalric of Jerusalem, a prominent ruler during the Crusades. His tenure as chancellor began around 1179 and lasted until King Amalric's death in 1174. William played a crucial role in advising and assisting King Amalric in governing the Kingdom of Jerusalem, which was established by the Crusaders in the Holy Land.