During the period when Buddhism was disseminated among countries, some countries saw conflict between Buddhism and their local gods, but Japan incorporated Buddhism by concluding that gods would protect Buddhists (syncretism of Shinto and Buddhism).
仏法が広まるとき、現地の神と争いが起こる場合があるが、日本の場合は、神は仏の信者を守護するという形で落ちついた（神仏習合）。