I was looking at a proof of this theorem:
Cancelation is valid in any integral domain $R$: If $a \neq 0_R$ and $ab = ac$, then $b = c$.
Proof:
If $ab = ac$, then $ab - ac = 0_R$, so that $a(b-c) = 0_R$. Since $a \neq 0_R$, we have $b-c = 0_R$. Thus $b = c$.
At first, I thought it was utilizing that fact that $a \neq 0_R$, to justify dividing both sides by $a$ since you normally can't divide by zero, but now I'm thinking it's actually because the zero-product property holds in integral domains. So if $a \neq 0_R$, then $b-c$ must be equal to $0_R$.