In medieval Japan, castles developed for two purposes: in order to defend the samurai residence during peace time and defend from attack by armies from around steep mountains during war time.
中世の日本では、武士の平時の居住地への防護と、戦時に険阻な山に拠る際の防護と、2つの必要から城が発達した。