Criminal law corresponds to part of society and societal regulations where different aspects of law have been broken and people who are considered to be guilty are then judged by. Criminals are therefore judged based on criminal law which state how severe their sentence should be.
Civil law on the other hand, however, corresponds to parts of society where we're talking about common people/citizens, different aspects of civil life which tell us what is allowed and what is not allowed. ~tommy