The primary purpose of civil law is to resolve disputes and provide compensation for someone injured by someone else's acts or behavior.