Breakdown of Previamente, el edificio había sido una fábrica.
ser
to be
un
a, an, some
el edificio
the building
haber
to have (auxiliary)
Questions & Answers about Previamente, el edificio había sido una fábrica.
Why is "fábrica" translated as "factory"? Doesn't it mean "fabric"?
This is a classic false friend. Fábrica refers to a "factory" or manufacturing plant. If you want to say "fabric" or "material" in Spanish, you would use words like tela or tejido.
What tense is había sido and why is it used here?
It is the past perfect (or pluperfect), formed with the imperfect of haber (había) and the past participle of ser (sido). It translates to "had been" and is used to talk about an event or state that happened even further in the past than the main past story you are telling.
Could we use había estado instead of había sido in this sentence?
No, because being a factory is the fundamental identity of the building, not just a temporary state or a location. To express what an object fundamentally is or was, we must use ser, which gives us the past participle sido.
How is the adverb previamente formed?
Like most Spanish adverbs ending in -mente (which is the equivalent of the English "-ly"), it is formed by taking the feminine singular form of the adjective previo (which is previa) and attaching the -mente suffix.