That was how they entered their present prison.
The entered a prison.