Why was the Atomic Bomb Made?

The atomic bomb was made for a lot of different reasons. It was necessary to use against Japan no matter how tragic because it prevented the enormous loss of life from a ground invasion.