In 1185, when MINAMOTO no Yoshiie and MINAMOTO no Yoshitsune, who were members of the Yoritomo government, began to oppose Yoritomo immediately after his government defeated the Taira clan, Tokimasa HOJO, Yoritomo's father-in-law, visited Kyoto to negotiate with Emperor Goshirakawa's group in order to obtain imperial permission (the Bunji imperial permission) to create positions ("jito" (land steward) and "shugo" (provincial military governor)) and to collect supplies of rice for soldiers from manors and imperial territories for the purpose of hunting down and killing Yoshiie and Yoshitsune.
1185年、頼朝政権が平家を滅ぼした直後、頼朝政権の一員だった源行家・源義経が頼朝へ反抗姿勢を見せ始めると、同年11月に頼朝義父の北条時政が上京し、後白河側と交渉を行い、その結果、頼朝側へ、行家・義経追討を名目として荘園・公領から兵糧米を徴収する職（＝地頭・守護）の設置が勅許されることとなった（文治の勅許）。