John Milton was imprisoned because he wrote against the government. His imprisonment was one of the first examples of censorship - he was publishing works on divorce, and anti-governmental thoughts, and that is why he had to go to jail, although not for long.