Jails are institutions set up for the confinement of individuals held in lawful custody due to some minor offenses they have been charged with. A detention center, on the other hand, is a general term because it is high in scope and coverage. A detention center can be a concentration camp, a jail, an internment camp, a prison, etc. It is simply a facility in which people are detained or confined.
Though detention centers are meant for the confinement of people, they are established to serve different purposes. An individual that has been charged with something might be kept in a detention center before he or she is convicted or acquitted. This usually for people that are yet to be granted bail, maybe because they are threats to other people, or they might try to flee. Detention centers are of different types i.e., minimum, medium, and maximum detention centers. Maximum detention centers are for violent and hardened criminals, usually, those that have been sentenced for life imprisonment.