The term lawsuit is a dispute that you go to court to try to settle.  In a lawsuit, you’ve basically thought that there’s been something wrong that has happened, and you ask a court to try to figure out what happened, and at the same time to exact some kind of punishment.