A direct product of integral domains is never an integral domain since $(1,0)\cdot(0,1)=0$. You can also consider PIDs; $\Bbb Z$ is a PID while $\Bbb Z\times\Bbb Z$ is no. The direct product of fields is not a field, say $\Bbb Q$ and $\Bbb Q\times\Bbb Q$.
There is also a problem of checking that if you don't use a canonical operation, checking that it still makes sense as an operation. For example, we can identify $\Bbb C$ with $\Bbb R^2$ by defining an operation $$(a,b)\cdot(c,d)=(ac-bd,ad+bc).$$ It is not immediately obvious that this is a well-defined operation that satisfies the axioms for a ring.