An edit war ( listen ) occurs when editors who disagree about the content of a page repeatedly override each other's contributions. Editors engaged in a dispute should reach consensus or pursue dispute resolution rather than edit warring. Edit warring is unconstructive and creates animosity between editors, making consensus harder to reach. Users who engage in edit wars risk being blocked or even banned. An editor who repeatedly restores his or her preferred version is edit warring, regardless of whether their edits were justifiable: "but my edits were right, so it wasn't edit warring" is no defense.
There is a bright line known as the three-revert rule (3RR). To revert is to undo the action of another editor. The 3RR says an editor must not perform more than three reverts, in whole or in part, whether involving the same or different material, on a single page within a 24-hour period. Any appearance of gaming the system by reverting a fourth time just outside of the 24-hour slot may also be considered edit warring. There are certain exemptions to 3RR, such as reverting vandalism or clear violations of the Biographies of living persons policy; see below for details. The three-revert rule is a convenient limit for occasions when an edit war is happening fairly quickly, but it is not a definition of "edit warring", and it is perfectly possible to edit war without breaking the three-revert rule, or even coming close to doing so.