Do Androids Dream of Electric Sheep, by Philip K. Dick
First, man starts an all out nuclear war, devastating the planet, killing billions, and wiping out countless species of animals. Second, man decides to create artificial intelligence to serve man as an incentive to leave Earth, not stopping to think about the repercussions of having AIs in society. Our main character would be out of a job had it not been for man's poor choices.