$f:X\rightarrow Y$ is a closed map, $f^{-1}(\{ y\}) $ is compact $\forall y\in Y$ then $X$ is compact.
Prob 12, Sec 26 in Munkres' TOPOLOGY, 2nd ed: How to show that the domain of a perfect map is compact if its range is compact?