Hozuki Castle was a prison that the various nations had commissioned Kusagakure to establish for shinobi who had committed crimes. On the surface, it held prisoners, but its true purpose was to study the Box of Ultimate Bliss, an ultimate weapon from the era of the Sage of Six Paths.
Its prisoners therefore fell roughly into three categories.
The first consisted of shinobi the various nations had abandoned or who had no intelligence value. They served as experimental material for research on the Box of Ultimate Bliss and could inexplicably disappear at any time. Prisoners of this kind were the most numerous.
The second consisted of spies disguised as prisoners from the various nations. They primarily gathered intelligence and monitored the progress of research on the Box of Ultimate Bliss, so they could seize or destroy it once the research was complete. Kusagakure knew they were there, but its weaker position left it no choice but to tolerate them.
The third consisted of actual criminals, primarily those captured by Kusagakure.
The current man in charge of Hozuki Castle was Mui, a Kusagakure Jonin.
Mui specialized in Kusagakure Style Taijutsu and a Fire Style Sealing Jutsu called the Heavenly Prison Technique. The technique restricted the user's target from gathering chakra, and if the target left Hozuki Castle or went too far from Mui, it would activate and burn them to death. It was an excellent way to suppress prisoners, which was why Mui's family had guarded Hozuki Castle for generations.
After Mui's son, Muku, died in an experiment involving the Box of Ultimate Bliss, Mui came to his senses and became utterly disillusioned with Kusagakure. He continued researching the Box of Ultimate Bliss solely to bring Muku back to life.
Unfortunately, although the Box of Ultimate Bliss was supposedly a weapon