To simplify the expression \( 2 - (-7) \), you can rewrite it as:
\[ 2 + 7 \]
This is because subtracting a negative number is the same as adding the positive version of that number.
Now, add the numbers:
\[ 2 + 7 = 9 \]
So, the simplified expression is:
\[ \boxed{9} \]