Answer:
Taking revenge on the king and his cabinet for the king's striking of his friend and fellow dwarf Trippetta, he dresses the king and his cabinet as orangutans for a masquerade.