# earthquake, so that the foundations of the prison were shaken

This can be stated in active form. Alternate translation: "earthquake which shook the foundations of the prison" (See: [[rc://en/ta/man/translate/figs-activepassive]])

# the foundations of the prison

When the foundations shook, this caused the entire prison to shake. (See: [[rc://en/ta/man/translate/figs-synecdoche]])

# all the doors were opened

This can be stated in active form. Alternate translation: "all the doors opened" (See: [[rc://en/ta/man/translate/figs-activepassive]])

# everyone's chains were unfastened

This can be stated in active form. Alternate translation: "everyone's chains came loose" (See: [[rc://en/ta/man/translate/figs-activepassive]])