"X is the reason for Y" is the structure. "that" is the subject. "your being shut up in the Bastille" is a gerund phrase (noun phrase) acting as the object of the preposition "for".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.