In 538, Buddhism came to Japan from Korea.
There was a conflict between powerful families.
One of them would like to popularize Buddhism in Japan and another opposed it.
The pro-Buddhism family won the conflict and finally Buddhism was approved to be a national religion together with Shintoism.