The Samurai-dokoro (侍所 - Board of Retainers) was an office of the Kamakura and Muromachi shogunates. The role of the Samurai-dokoro was to take the leadership of gokenin, the shogun's retainers, and to be in charge of the imprisonment of criminals. It was established in 1180 by Minamoto no Yoritomo, the founder of the Kamakura shogunate.[1]