\documentclass{article}
\usepackage{comment}

\begin{document}

\section{Real section}

\begin{comment}
\section{Commented section}
\subsection{Commented subsection}
\subsubsection{Commented subsubsection}
\end{comment}

\begin{comment}
\begin{figure} \label{fig:commented}
\end{figure}
\end{comment}

\section{Next real section}

\end{document}
