In China, the Han dynasty (206 BCE – 220 CE) advocated Confucianism as the "de facto" state religion, establishing tests based on Confucian texts as an entrance requirement into government service—although, in fact, the "Confucianism" advocated by the Han emperors may be more properly termed a sort of Confucian Legalism or "State Confucianism". This sort of Confucianism continued to be regarded by the emperors, with a few notable exceptions, as a form of state religion from this time until the collapse of the Chinese monarchy in 1912. Note, however, there is a debate over whether Confucianism (including Neo-Confucianism) is a religion or purely a philosophical system.