Why was John Milton imprisoned?

He stole money from a shopkeeper.

He wrote against the government.

He refused to support his family.

He refused to go into military service.