A civil case, more commonly known as a lawsuit or controversy, begins when a plaintiff files a document called a complaint with a court, informing the court of the wrong that the plaintiff has allegedly suffered because of the defendant, and requesting a remedy.
At any point during the case, the parties can agree to a settlement, which will end the case, although in some circumstances, such as in class actions, a settlement requires court approval in order to be binding.