Original: He had all the burgomasters and town councillors (who were levying unfair taxes) arrested simultaneously and imprisoned in the castle.
Simplified: He had all the burgermeisters and town councillors (who were charging unfair taxes) arrested at the same time and imprisoned in the castle.