After a final decision has been made, either party or both may appeal from the judgment if they believe there had been a procedural error made by the trial court. It isn't necessarily an automatic appeal after every judgment has been made, however, if there is a legal basis for the appeal, then one has the right to do so. The prevailing party may appeal, for example, if they wanted a larger award than was granted. The appellate court (which may be structured as an intermediate appellate court) and/or a higher court then affirms the judgment, declines to hear it (which effectively affirms it), reverses—or vacates and remands. This process would then involve sending the lawsuit back to the lower trial court to address an unresolved issue, or possibly request for a whole new trial. Some lawsuits go up and down the appeals ladder repeatedly before final resolution.
A lawsuit may involve dispute resolution of private law issues between individuals, business entities or non-profit organizations. A lawsuit may also enable the state to be treated as if it were a private party in a civil case, as plaintiff, or defendant regarding an injury, or may provide the state with a civil cause of action to enforce certain laws.