What led most directly to the end of World War 2 in Europe?

The fall of Berlin and the suicide of Adolf Hitler there.