Civil procedure refers to the set of rules and processes that govern how civil lawsuits (as opposed to criminal proceedings) are conducted in court. It encompasses the steps taken by parties and the court from the initiation of a lawsuit through its resolution, including the filing of pleadings, discovery, motions, trial, and appeal.