王安石
During the Prime-Ministry of Neo-Confucian "Reformer" Wang Anshi (1021-1086), the state began to take on social welfare functions previously provided by Buddhist monasteries, instituting public orphanages, hospitals, dispensaries, hospices, cemeteries, and reserve granaries.