Kastil kota kawigunayang anggén nguratiang krama lokal miwah pamargin sané  utama miwah kastil ring desa puniki sering kagenahang nampek saking genah-genah sané  madué  cecirén utama saking kahuripan kramané, sakadi pabrik, tanah sané  gemuh, utawi kawéntenan toya.
Urban castles were used to control the local populace and important travel routes, and rural castles were often situated near features that were integral to life in the community, such as mills, fertile land, or a water source.