In the Roman pantheon, Janus is the two-faced god of beginnings, limits, doors, gateways, and departure. Unlike the other Greco-Roman deities, Janus was not imported from Greece to Rome. How he arrived in the Roman pantheon is unclear: some scholars believe that he was originally a gatekeeping deity of the near East while others argue he was an original Latin deity who was worshipped in Italy before Rome rose to power. Similarly there are different myths concerning his origin. The most dramatic tale of his creation asserts that he was made by Uranus, god of the primal heavens as a love present for dark Hecate. Janus despised being in the underworld so he escaped from Hecate by diving into the river Styx and swimming to the world above.
After fleeing the underworld, Janus acted as one of the earliest kings of Rome in the golden era when the titans ruled the world, however at the end of the titanomachy—the epic war between titans and Olympians—he made the poor decision to give shelter to Saturn, hated father of Jupiter. Jove was furious at Janus because of this betrayal and he cursed him with immobility and with a second face. Thereafter Janus stood at the threshold of heaven to open and close the gate as Jupiter came and went.
Janus was a popular god for the Romans and they worshipped him whenever they started a new venture or embarked on a trip. January is named after the god and the first day of every month is dedicated to him. The ancient temple of Janus stood in the center of Rome was open during war and closed during times of peace. Since the Romans were a warlike people the temple was rarely closed and sometimes stood open for hundreds of years at a time.