Original: At the end of the 20th century the whole building was restored.
Simplified: At the end of the 20th century, major repairs were done to the building.