Answer
Pope Clement VII was imprisoned during the Sack of Rome, which took place in 1527. The sack was carried out by troops of the Holy Roman Empire under the command of Charles V, Holy Roman Emperor, in retaliation for the Pope's support of Francis I of France during the Italian Wars. During the sack, the Pope was taken prisoner and held in Castel Sant'Angelo for several months.