When Buddhism was originally introduced to Korea from Former Qin in 372,[6] or about 800 years after the death of the historical Buddha, Shamanism was the indigenous religion. As it was not seen to conflict with the rites of nature worship, Buddhism was allowed to blend in with Shamanism. Thus, the mountains that were believed to be the residence of spirits in pre-Buddhist times became the sites of Buddhist temples.