Complex sentence: Marshalsea was originally the name of the Marshalsea Court; the prison was built to hold prisoners brought before that court and the Court of the King's Bench, to which Marshalsea rulings could be appealed.
Split into simpler sentences: Marshalsea was originally the name of the Marshalsea Court. The prison was built to hold prisoners brought before that court and the Court of the King's Bench, to which Marshalsea rulings could be appealed.