Step 1: Substitute $x = -1$ into the polynomial.
We are given $p(x) = x^2 + x + 1$. To find the value when $x = -1$, substitute $x = -1$ into the equation:
\[
p(-1) = (-1)^2 + (-1) + 1
\]
Step 2: Simplify the expression.
\[
p(-1) = 1 - 1 + 1 = 1
\]
Step 3: Conclusion.
Thus, the value of $p(x)$ when $x = -1$ is:
\[
p(-1) = 1
\]