Kamakura bakufu, which had noticed these activities, created the position of Ikoku Keigo Banyaku (Foreign Enemy Defense) in 1272, and ordered the Shoni clan (Muto clan) serving as Chinzei Bugyo (Defense Commissioner of the West) and the Otomo clan to supervise it.
これらの動向を察知していた鎌倉幕府は、1272年に異国警護番役を設置し、鎮西奉行であった少弐氏（武藤氏）や大友氏に対して指揮を命じた。