Which religions were encouraged after the four-year war?