John Dewey was travelling in Japan in 1919. He was invited by Peking University to visit China. Dewey and his wife, Alice, arrived in Shanghai on May 1, 1919, just days before student demonstrators took to the streets of Peking to protest the decision of the Allies in Paris to cede the German held territories in Shandong province to Japan. Their demonstrations on May Fourth excited and energized Dewey, and he ended up staying in China for two years, leaving in July 1921. In these two years, well aware of both Japanese expansionism into China and the attraction of Bolshevism to some Chinese, Dewey advocated that Americans support China's transformation and that Chinese base this transformation in education and social reforms, not revolution. Their works and letters from China and Japan describing their experiences to their family were published in 1920.