What is imprisonment?

Imprisonment is an act of punishment given to a certain people who have done something against the law. people are being imprisoned so they will learn to do what is right. also it is a way that people will avoid such wrong doings because they don't want to be punished