After experiencing a bizarre dream, Madoka Kaname, a kind 14-year-old girl, encounters a magical creature named Kyube. Madoka and her friend Sayaka Miki are offered the opportunity of gaining magical powers if they agree to make a contract with the strange little being. He will also grant them one wish, but in exchange they shall risk their lives by accepting the responsibility of fighting witches. Invisible to human eyes, witches are catalysts of despair in the areas they inhabit. An ally of Kyube, a magical girl named Mami Tomoe, befriends and encourages the two girls to accept the contract. For an unknown reason, another magical girl named Homura Akemi is determined to prevent Madoka from accepting the deal.
Steins;Gate is set in the summer of 2010, approximately one year after the events that took place in Chaos;Head, in Akihabara. Physical locales of Akihabara like the Radio Kaikan building can be spotted in the game. According to Chiyomaru Shikura, who headed the planning of Steins;Gate, Akihabara was chosen because it is an easy place for acquiring hardware parts, which makes it the ideal place for people interested in inventing and tinkering with things. The notion of time and time traveling are the main themes of the game. The concept of cause and effect is featured prominently in the game as the protagonist travels back in time numerous times to perform different actions in an attempt to alter what has happened in the future.