After the assassination of the third shogun MINAMOTO no Sanetomo, with evolution of the Shikken administration (regent to shogun), it became common for royalty or a court noble to be invited to assume the status of the Kamakura Seii taishogun (literally, "great general who subdues the barbarians") as a puppet shogun under the control of the Regent Hojo clan and because of their background, the invited shogun and people around them naturally attached importance to onmyoji.
3代将軍源実朝暗殺後は、北条氏による執権政治が展開されるようになり、鎌倉征夷大将軍は執権北条一族の傀儡将軍として代々皇族や公家から招かれるようになり、招かれた将軍らは出自柄当然ながら陰陽師を重用した。