In one line
Difference-in-differences subtracts the control group's before/after change from the treated group's — literally a difference of differences.
Why subtract twice
Suppose revenue rose 10% after switching on a brand campaign. That 10% contains the campaign plus season, promotions, and competitor moves.
If regions without the campaign rose 6% over the same period, that 6% happened without it. The DiD estimate is 10% − 6% = 4%.
The condition it rests on
Parallel trends. The two groups must have moved together before treatment. If the curves were already separating beforehand, the post gap may just be that pre-existing divergence continuing.
So the first step with DiD is plotting the pre-treatment curves, before looking at any result.
Go deeper
Alternatives when no control group is possible are covered in incrementality measurement.