About the same time there occurred the great transformation whereby Taoism, uniting the doctrines of the Taoist school of ancient philosophers with the mass· of magical-scientific accretions which had crystallised around the nucleus of primitive shamanism, changed into an organised religion which competed strongly, and often successfully, with Buddhism. The first steps in its systematisation were taken,. significantly enough, in the north, where its first ‘pope’ resided in the Wei capital see on, Sect. IOj .