Over the centuries, the palace, devastated by earthquakes and fires, almost disappeared (,) and what remained of it, .... Over the centuries, the palace almost disappeared, devastated by earthquakes and fires (,) and what remained of it, ... (the problematic comma is in parentheses and I think it should only be there in the second case)