To solve the expression \(-2 - (-7)\), you first recognize that subtracting a negative number is the same as adding its positive counterpart.
So, you can rewrite the expression as:
\[ -2 + 7 \]
Now, calculate the result:
\[ -2 + 7 = 5 \]
Therefore, \(-2 - (-7) = 5\).