By the 2nd century AD, Daoists formed large hierarchical religious societies such as the Way of the Five Pecks of Rice.