Lain Iwakura appears to be an ordinary girl, with almost no experience with computers. Yet the sudden suicide of a schoolmate, and a number of strange occurrences, conspire to pull Lain into the world of the Wired, where she gradually learns that nothing is what it seems to be... not even Lain herself.
Yukiteru (Yuki) Amano is a loner who never really interacts with people and prefers writing a diary on his cell phone, with his only companion being an imaginary friend named Deus Ex Machina, the God of Time and Space. However, Yuki soon learns that Deus is not a figment of his imagination but real when Deus makes him a participant in a battle royale with eleven others. Within this "Diary Game", the contestants are given special diaries that can predict the future, with each diary having unique features that gives it both advantages and disadvantages.
After moving into the quiet town of Hinamizawa, Maebara Keiichi spends his days blissfully in school often playing games with his local friends. However, appearances can be deceiving. One fateful day, Keiichi stumbles upon news of a murder that had occurred in Hinamizawa. From this point on, horrific events unfold in front of Keiichi, as he soon learns his close friends may not be all that they seem. Based on the amateur mystery game by 07th Expansion, the story is told in a series of different scenarios.