Was there ever a different type of government in Japan?

Before World War II, the emperor had all of the power in Japan, and he was considered a god. The concept of democracy was part of the rebuilding process.