Answer
Holy Roman Emperor Charles V imprisoned Pope Clement VII during the Sack of Rome. Charles was angered by the pope's support of Francis I of France in the War of the League of Cognac. Charles captured Rome in 1527 and took the pope prisoner. Clement was held captive for several months, and was eventually released after agreeing to sign the Treaty of Barcelona.