The Liu Sung Emperor Wên-Ti (424-454) was a patron of Confucian learning, but does not appear to have discouraged Buddhism. The Sung annals record that several embassies were sent from India and Ceylon to offer congratulations on the flourishing condition of religion in his dominions, but they also preserve memorials from Chinese officials asking for imperial interference to prevent the multiplication of monasteries and the growing expenditure on superstitious ceremonies. This marks the beginning of the desire to curb Buddhism by restrictive legislation which the official class displayed so prominently and persistently in subsequent centuries. A similar reaction seems to have been felt in Wei, where the influential statesman Ts'ui Hao[623], a votary of Taoism, conducted an anti-Buddhist campaign. He was helped in this crusade by the discovery of arms in a monastery at Ch'ang-an. The monks were accused of treason and debauchery and in 446 Toba Tao[624], the sovereign of Wei, issued an edict ordering the destruction of Buddhist temples and sacred books as well as the execution of all priests. The Crown Prince, who was a Buddhist, was able to save many lives, but no monasteries or temples were left standing. The persecution, however, was of short duration. Toba Tao was assassinated and almost the first act of his successor was to re-establish Buddhism and allow his subjects to become monks. From this period date the sculptured grottoes of Yün-Kang in northern Shan-si which are probably the oldest specimens of Buddhist art in China. In 471 another ruler of Wei, Toba Hung, had a gigantic image of Buddha constructed and subsequently abdicated in order to devote himself to Buddhist studies. His successor marks a reaction, for he was an ardent Confucianist who changed the family name to Yüan and tried to introduce the Chinese language and dress. But the tide of Buddhism was too strong. It secured the favour of the next Emperor in whose time there are said to have been 13,000 temples in Wei.

In the Sung dominions a conspiracy was discovered in 458 in which a monk was implicated, and restrictive, though not prohibitive, regulations were issued respecting monasteries. The Emperor Ming-Ti, though a cruel ruler was a devout Buddhist and erected a monastery in Hu-nan, at the cost of such heavy taxation that his ministers remonstrated. The fifty-nine years of Liu Sung rule must have been on the whole favourable to Buddhism, for twenty translators flourished, partly natives and partly foreigners from Central Asia, India and Ceylon. In 420 a band of twenty-five Chinese started on a pilgrimage to India. They had been preceded by the celebrated pilgrim Fa-Hsien[625] who travelled in India from 399 to 414.

In the reign of Wu-Ti, the first Emperor of the Ch'i dynasty, one of the imperial princes, named Tzŭ Liang[626], cultivated the society of eminent monks and enjoyed theological discussions. From the specimens of these arguments which have been preserved we see that the explanation of the inequalities of life as the result of Karma had a great attraction for the popular mind and also that it provoked the hostile criticism of the Confucian literati.

The accession of the Liang dynasty and the long reign of its first emperor Wu-Ti (502-549) were important events in the history of Buddhism, for this monarch rivalled Asoka in pious enthusiasm if not in power and prosperity. He obviously set the Church above the state and it was while he was on the throne that Bodhidharma came to China and the first edition of the Tripitaka was prepared.

His reign, though primarily of importance for religion, was not wanting in political interest, and witnessed a long conflict with Wei. Wu-Ti was aided by the dissensions which distracted Wei but failed to achieve his object, probably as a result of his religious preoccupations, for he seemed unable to estimate the power of the various adventurers who from time to time rose to pre-eminence in the north and, holding war to be wrong, he was too ready to accept insincere overtures for peace. Wei split into two states, the Eastern and Western, and Hou-Ching[627], a powerful general who was not satisfied with his position in either, offered his services to Wu-Ti, promising to add a large part of Ho-nan to his dominions. He failed in his promise but Wu-Ti, instead of punishing him, first gave him a post as governor and then listened to the proposals made by the ruler of Eastern Wei for his surrender. On this Hou-Ching conspired with an adopted son of Wu-Ti, who had been set aside as heir to the throne and invested Nanking. The city was captured after the horrors of a prolonged siege and Wu-Ti died miserably.

Wu-Ti was not originally a Buddhist. In fact until about 510, when he was well over forty, he was conspicuous as a patron of Confucianism. The change might be ascribed to personal reasons, but it is noticeable that the same thing occurred in Wei, where a period of Confucianism was succeeded by a strong wave of Buddhism which evidently swept over all China. Hu[628], the Dowager Empress of Wei, was a fervent devotee, though of indifferent morality in both public and private life since she is said to have poisoned her own son. In 518 she sent Sung Yün and Hui Shêng[629] to Udyâna in search of Buddhist books of which they brought back 175.

Wu-Ti's conversion is connected with a wandering monk and magician called Pao-Chih[630], who received the privilege of approaching him at all hours. A monastery was erected in Nanking at great expense and edicts were issued forbidding not only the sacrifice of animals but even the representation of living things in embroidery, on the ground that people might cut up such figures and thus become callous to the sanctity of life. The emperor expounded sûtras in public and wrote a work on Buddhist ritual[631]. The first Chinese edition of the Tripitaka, in manuscript and not printed, was collected in 518. Although Wu-Ti's edicts, particularly that against animal sacrifices, gave great dissatisfaction, yet the Buddhist movement seems to have been popular and not merely an imperial whim, for many distinguished persons, for instance the authors Liu Hsieh and Yao Ch'a[632], took part in it.

In 520 (or according to others, in 525) Bodhidharma (generally called Ta-mo in Chinese) landed in Canton from India. He is described as the son of a king of a country called Hsiang-chih in southern India, and the twenty-eighth Patriarch[633]. He taught that merit does not lie in good works and that knowledge is not gained by reading the scriptures. The one essential is insight, which comes as illumination after meditation. Though this doctrine had subsequently much success in the Far East, it was not at first appreciated and Bodhidharma's introduction to the devout but literary Emperor in Nanking was a fiasco. He offended his Majesty by curtly saying that he had acquired no merit by causing temples to be built and books to be transcribed. Then, in answer to the question, what is the most important of the holy doctrines, he replied "where all is emptiness, nothing can be called holy." "Who," asked the astonished Emperor, "is he who thus replies to me?" "I do not know," said Bodhidharma.

Not being able to come to any understanding with Wu-Ti, Bodhidharma went northwards, and is said to have crossed the Yang-tse standing on a reed, a subject frequently represented in Chinese art[634]. He retired to Lo-yang where he spent nine years in the Shao-Lin[635] temple gazing silently at a wall, whence he was popularly known as the wall-gazer. One legend says that he sat so long in contemplation that his legs fell off, and a kind of legless doll which is a favourite plaything in Japan is still called by his name. But according to another tale he preserved his legs. He wished to return to India but died in China. When Sung Yün, the traveller mentioned above, was returning from India, he met him in a mountain pass bare-footed and carrying one sandal in his hand[636]. When this was reported, his coffin was opened and was found to contain nothing but the other sandal which was long preserved as a precious relic in the Shao-Lin temple.

Wu-Ti adopted many of the habits of a bonze. He was a strict vegetarian, expounded the scriptures in public and wrote a work on ritual. He thrice retired into a monastery and wore the dress of a Bhikkhu. These retirements were apparently of short duration and his ministers twice redeemed him by heavy payments.