How did Hitler lose his power?

Hitler and the Nazi party lost power because they were defeated in the Second World War. Faced with inevitable capture, Hitler shot his family and himself.