In a nutshell
At the end of the game, filling in the neutral points (dame) on the borders that belong to neither side.
In detail
After all the endgame moves, filling in the remaining points on the borders that belong to neither side is filling dame. It doesn't change the score, but under Japanese rules dame are filled before counting.
Unexpected ataris can appear while filling dame, so care is needed right to the end.