State Shinto was the main religion of Japan before World War II. During the period 1868 to 1945 the Japanese government used Shinto for propaganda. All Japanese were forced to register with their local shrine. All Shinto priests worked for the government. War was seen as a sacred duty. The Emperor of Japan was seen as a god. Japanese Buddhism was also involved with the war effort (See Zen at War).