In Greek mythology, Prometheus is punished by Zeus for giving fire to humanity before Pandora appears.
Prometheus is a Titan associated with foresight and with helping humankind. In the best-known version of the story, he steals fire from the gods and gives it to mortals. Zeus responds by arranging a punishment for Prometheus and a separate punishment for humanity: the creation of Pandora.
The connection is especially clear in Hesiod’s Theogony and Works and Days. Pandora is not simply an unrelated character; she forms part of Zeus’s response to Prometheus’s challenge. Hesiod presents her arrival as bringing a new source of trouble into human life.
Later Greek and Roman writers expand Prometheus’s role, sometimes making him the creator of humans or a heroic champion of civilization. Those later versions should not be confused with every detail of Hesiod’s earlier account.