Other forms: undoing; undid
When you undo something, you make it invalid, like when governments undo treaties they've signed in the past. Another way to undo is simply to open: "I couldn't undo the knot on my sneakers, so I just slipped them off."
When we undo something, we cancel out its results, or reverse them. You might try to undo the damage caused by your little sister's baseball, offering to replace your neighbor's broken window. Formally, this verb also means "cause downfall or ruin," so you could say, "His love of power will undo him in the end."