Simply put, accuracy/dodge determines how likely you are to hit, and if you do hit then attack/defense determine how much damage you do. If you have 10 attack against a guy with 10 defense, you can think of it as two rolls of 1-10, and the damage you do is your attack roll minus his defense roll. It's a little more complicated than that though, they have a way of weighting the rolls towards higher numbers, so you'll see 10 more often than 1 (last I heard I think they were using a sqrt(roll*10) formula. It keeps changing though, so that information is probably outdated).
Anyway if the attack is completely canceled out by defense, you'll see it was "blocked" (as opposed to "dodged", which means your accuracy vs. dodge roll failed). The end result is that when attack is equal to defense, most but not all of the damage will get canceled out by defense.