Non-examples
The ring of integers modulo a prime number does not have zero divisors and this ring is, in fact, a field, as every non-zero element is a unit.
More generally, there are no zero divisors in division rings.
A commutative ring with 0 ≠ 1 and without zero divisors is called an integral domain.
Read more about this topic: Zero Divisor