How was the narrator freed from his prison?
For a while, the narrator did a pretty good job of saving himself. He was lucky enough not to fall into the pit while he was exploring the pitch black cell, as he fell to the ground close enough to realize the pit existed but not so close that he fell in. Also, when he woke to find himself tied down, he saved himself by spreading what was left of his food onto the ropes holding him down, thereby enticing the rats to eat through the ropes and help him free just before the pendulum could cut into him. However, when the walls literally start closing in around him, slowly forcing him towards the pit, his end seems near, but just as he is about to fall in, a hand grabs his arm: General Lasalle of the French army has arrived to end the branch of the Spanish Inquisition in Toledo, and he was just in time to save the narrator from falling to his death.