Let $(X,\tau)$ be a compact topological space.
If $Y\subseteq X$ is closed, then $Y$ is also compact.
Proof
The converse is true if $X$ is Hausdorff.