In a nutshell
Both sides take each other's stones or territory, trading gains and losses.
In detail
Exchanging gains and losses—for example, capturing the opponent's stones while letting them take some of your stones or territory—is called furikawari, a trade.
Judging correctly who came out ahead is difficult, and a big trade can swing the game in an instant.