The Prison allows you to capture and detain other level 10 Commanders. Your Prison also gives you the ability to execute enemy Commanders when your Headquarters is level 15. You can only execute other level 15 Commanders.
Upgrade your Prison to decrease the time needed to execute an enemy Commander. A higher-level Commander requires more time before the captured Commander can be executed.