John Bunyan was imprisoned twice. His first imprisonment, from 1660 to 1672, was for preaching without a license. His second imprisonment, from 1675 to 1677, was for writing Pilgrim's Progress.
The Pilgrim's Progress: Test Your Knowledge of John Bunyan's Life and Works!