Heracles, the son of Zeus and Alcmene and the greatest of the Greek heroes, was a divine hero in Greek mythology. But this great hero suffered a lot in his all life. In a fit of madness, induced by Hera, Heracles killed his children and wife. Then, he began to seek a salvation. To expiate the crime, Heracles was required to carry out twelve labors set by his archenemy, Eurystheus. Heracles accomplished these tasks and became a god at the end.
I think this mythology encourages people to confront difficulties in life and try to overcome it. Even the heroes will suffer a lot of hardship, people should work harder and harder,  striving to fight with suffering.