Any assessment of the role of Buddhism as the governing ideology of Koryo is complicated by the existence of multiple classes in Korean society at the time, and their conflicting religious allegiances. Therefore, while Buddhism was the state religion in the time of the Koryo it cannot be considered the governing ideology of the state in the same way that communism was the governing ideology of China under Chairman Mao.