This question already has an answer here:
In the 125th paragraph of "The Gay Science", Nietzsche announces the death of God but I have some doubts. Why God is dead? What is the reason of it? And why did Nietzsche announce it in front of an atheistic public?