Let $f: X \to Y$ be continuous with $X$ being compact, and $Y$ Hausdorff. Show for any closed $F \subset X$, $f(F) \subset Y$ is closed. Let $F \subset X$ be closed, as $X$ is compact it is a well known fact that closed subsets of compact need be compact thus $F$ is compact. And $f$ preserves compactness as it is conitnuous, thus $f(F) \subset Y$ is compact and another will known fact is compact subsets of Hausdorff need be closed thus $f(F) \subset Y$ is closed and $f$ is a closed map.
For proofs of our well known facts:
Closed subset of compact is compact: Let $A \subset X$ be closed with $X$ compact and let $\{U_a\}_{a \in A}, A$ some arbitrary indexing set be an open covering for $A$. Since $A$ is closed, then $X \setminus A$ is open and $\bigcup_{a \in A} U_a \cup X \setminus A$ is an open covering for $X$ and by its compactness there exists a finite subset $B \subset A$ such that
$$\bigcup_{a \in B}U_a \cup X \setminus A$$
is a finite sub cover for $X$ implying $\bigcup_{a \in B}U_a$ is a finite sub cover for $A$ making it compact.
Second fact: Suppose $A \subset X$ is compact and $X$ is Hausdorff, we aim to show $X \setminus A$ is open. Let $x \in X \setminus A$ I will find a neighborhood of $x$ disjoint from $A$. By Hausdorffness of $X$, for each $a \in A$, there exists disjoint open set $U_a \ni x, V_a \ni a$. Thus $\{V_a\}_{a \in A}$ is an open covering for $A$ and by its compactness, there exists some finite $B \subset A$ such that $\{V_a\}_{a \in B}$ is a finite sub cover for $A$ so put $V = \bigcup_{a \in B}V_a$ and put $U = \bigcap_{a \in B}U_b$ which is open as finite intersections of open need be open and as for every $a \in A$, $U_a \cap V_a = \emptyset$, one has $U \cap V=\emptyset$ thus we have found a neighborhood of $x$, namely $U$ which is disjoint from $A$ and $X \setminus A$ is open forcing $A$ to be closed.