Original: It was rebuilt as a more impressive structure containing thirty altars.
Simplified: It was rebuilt as a bigger building, with thirty altars.