This research compares and contrasts the apotropaic rituals of the Ucchusma and Luminous Agent Marshal Ma, and analyses the relationship between them. This paper first discusses Ucchusma and analyses its images and ritual methods in the light of related texts. Additionally, this paper analyses “the esoteric rites of the Numinous Official Martial Ma”, taking as its subject the images and ritual magic from juan 220 to 231 of the Daofa huiyuan, paying particular attention to the apotropaic methods of j. 224 and 225 and the commonalities in images and incantations between the Ucchusma and Luminous Agent Marshal Ma. The author finds that Song Dynasty images of Luminous Agent Marshal Ma are not stabilized, and that certain early images, with three heads, nine eyes and six arms, are derivative from those of Ucchusma, in addition to various incantations which show similar derivation. This demonstrates the close syncretic relationship between Tantric and Daoist ritual, a phenomenon which also occurs in the Marshal Tianyou. After the Ming dynasty, images of Marshal Ma became gradually more standardized, in particular the form with three eyes and two arms, one which is closely related to those of Wuxian and Huaguang Bodhisattva. This paper also focuses on tantric possession and child-possession to identify the role of young boys in apotropaic rituals of exorcism, and proceeds from this to analyse the overall structure of the ritual. This method for using young boys in apotropaic rites bears a strong relationship to the āveśa rites transmitted from India, which also use boys as mediums to perform divination and exorcism. From the Tang dynasty onwards, this kind of ritual gradually spread in common religion, by both Daoist priests and specialists of common religious magical rites. The author understands that these kinds of exorcistic ritual did not only appear in scriptures, but were practiced in folk religious contexts by Daoist priests, Tantric monks and ritual master, as can be seen in rough descriptions of such in the Yijianzhi. According to records in the Yijianzhi, avesa rites and Ucchusma were both practiced in sects of Daoist magic and ritual masters. The Esoteric Method/Rites of Marshal Ma also contains complex and detailed exorcisms using children, from which its uses in Daoism and Tantrism can be seen. From the analysis in this paper, it can be demonstrated that there was a great deal of interchange, borrowing and transformation between Song dynasty Daoism and Buddhism, generating a rich and multi-valent ritual culture.