Theorem (Seifert-van Kampen for closed cover)
Let $X$ be a space.
If $A,B\subseteq X$ are closed subsets such that $A\cup B = X$ and $A\cap B$ is path-connected and a neighbourhood deformation retract in both $A$ and $B$, then for $x_0\in A\cap B$, the homomorphism $$ \begin{align*} Φ: π_1(A, x_0) *_{π_1(A\cap B, x_0)} π_1(B, x_0) \to π_1(X, x_0) \end{align*} $$ given by inclusion maps is a isomorphism.