In Greek myth,Zeus didn't like the way Prometheus showed favours to mankind. So Zeus and other gods created the first woman, and offer her to Epimetheus, Prometheus' brother, despite his brother warning not to accept any gift from Zeus.
Pandora's name means "Gifts" and that's what the gods gave her. Zeus gave Pandora a beautiful box as a wedding gift to the Titan Epimetheus, which the gods told her not to open. Her curiosity got the best of her, she opened the lid, and release spirits of suffering, woes, disease and other ill-spirits (or evil spirits) that would plague mankind. She closed the box, but it was too late. The only spirit managed to keep in the box, is Hope.
That's the only thing that left for mankind, hope.