Augeas owned the greatest number of cattle in Greece (over a thousand), but had been too greedy to pay anyone to clean the stables for about thirty years. The fifth Labor of Hercules was to clean the Augean stables. This assignment was intended to be both humiliating rather than impressive, as had the previous labors as well as impossible, since the livestock were immortal and therefore produced an enormous quantity of dung. However, Hercules succeeded by rerouting the rivers Alpheus and Peneus to wash out the filth. Augeas was irritated because he had promised Hercules one tenth of his cattle if the job was finished in one day. He refused to honor the agreement, and Hercules killed him after completing the tasks. Hercules then gave his kingdom to Augeas' son Phyleus, who had been exiled for supporting Hercules against his father.