“It was the blood-stained gate, the entrance to hell of slavery, through which I was about to pass”

What does the pronoun “it” refer to in this sentence