To solve the equation \( z^2 = 9 \), we take the square root of both sides. This gives us two potential solutions:
\[ z = \sqrt{9} \quad \text{or} \quad z = -\sqrt{9} \]
Calculating the square roots:
\[ z = 3 \quad \text{or} \quad z = -3 \]
Therefore, the solutions are:
\[ z = 3 \quad \text{or} \quad z = -3 \]