Rio De Janeiro – An ancient Torah scroll once owned by a Brazilian emperor had been removed from Brazil’s National Museum for restoration prior to the massive fire that engulfed the building in Rio on Sunday.

Unlike other irreplaceable treasures, the 13th-century Yemenite Torah scroll once owned by emperor Pedro II is safe at another building that belongs to the National Museum. The Jewish federation in Rio is expected to make an announcement about the Jewish artifact soon.

“We deeply regret the loss of this colossal treasure in the history of Brazil,” Israel’s honorary consul in Rio, Osias Wurman, said of the building in an interview with JTA. “The only compensation was to know that the Torah of Pedro II is safe, since it was located in another building of the museum. This Torah is evidence of the admiration that the Portuguese monarch had for the Jewish people and for their traditions. This was so rare in Europe.”

The National Museum housed Latin America’s largest collection of historical artifacts with over 20 million items, including extensive paleontological, anthropological and biological specimens. It was home to a 13-yard-long dinosaur skeleton, an Egyptian mummy and a skull called Luzia that was among the oldest fossils ever found in the Americas, which were all burned in the fire. The largest meteorite ever discovered in Brazil survived the flames.

Established in 1818, the museum’s building was once the home of the Portuguese Royal Family after it fled Napoleon’s troops and sailed to Brazil. It was later home to the Brazilian Imperial Family until 1889. Pedro II, the country’s last monarch, was born there in 1825.

For many in Brazil, the poor state of the 200-year-old natural history museum quickly became a metaphor for what they see as the gutting of Brazilian culture and life during years of corruption, economic collapse and poor governance.

The cause of the fire is still not known. Protesters and museum directors said years of government neglect had left the museum so underfunded that its staff had turned to crowdfunding sites to open exhibitions.

The institution had recently secured approval for nearly $5 million for a planned renovation, including an upgrade of the fire prevention system. Firefighters used their trucks to collect water from a nearby lake because fire hydrants did not work.

Emperor Pedro II was the grandson of Portuguese King Dom Joao VI. He established a reputation as a vigorous sponsor of learning, culture and the sciences. A passion for linguistics prompted him throughout his life to study new languages, and he was able to speak and write not only Portuguese but also another 13 languages, including Hebrew.

In May, a sefer haftarah — or readings from the books of the prophets that are read on Shabbat following the Torah reading — was seized from criminals during a police raid of a Rio slum and returned to the Jewish community.