Stephen King's The Stand
A supervirus that leaked from a lab kills most of the population in what appears to be The Plague (Part 1). The survivors share The Dreams (Part 2). Then they fight to stay alive as they break into groups of good and evil in The Betrayal (Part 3). The Stand (Part 4) between good and evil is the final episode.