Once up a time, a long time ago, there were two brothers named Epimetheus and Prometheus. They were good gods. They had good hearts. They were good friends.
One day, Prometheus got in trouble with Zeus. Angry over something or other, Zeus had declared that man did not deserve fire. Because he had a kind heart, and he knew how much man needed fire for food and warmth, Prometheus gave man the secret of fire even though Zeus had told all the gods not to do that. Zeus was furious that his order had been ignored
Zeus knew that Epimetheus was lonely. Zeus told Epimetheus that his brother, Hephaestus, had to be punished and that's why he was chained to a rock, but he felt sorry that this punishment left Epimetheus without the company of his brother. That's why Zeus had decided to give Pandora in marriage to Epimetheus. It was not the truth of course, but then nearly everyone in the ancient Greek world knew better than to believe the mighty Zeus.
As punishment, Zeus chained Prometheus to a rock for many years.
But that was not enough punishment, not for Zeus. Once Prometheus was chained to a rock, Zeus went after Prometheus' brother, the gentle, kind-hearted Epimetheus. Zeus did not chain Epimetheus to a rock. Zeus had a more sneaky punishment in mind.
First, Zeus ordered the gods' handyman, the maker of things - Hephaestus - to make Zeus a daughter. Hephaestus made a woman out of clay, a beautiful woman. He brought her to life, and then brought her to Zeus. Zeus named his lovely new daughter Pandora.