Multiple figures in a two column latex file

After searching for a very long time, I found out a simple solution using multicols.

\usepackage{multicol}
\usepackage{graphicx}

\begin{document}

\begin{figure*}
\begin{multicols}{2}
    \includegraphics[width=\linewidth]{figure name}\par 
    \includegraphics[width=\linewidth]{figure name}\par 
    \end{multicols}
\begin{multicols}{2}
    \includegraphics[width=\linewidth]{figure name}\par
    \includegraphics[width=\linewidth]{figure name}\par
\end{multicols}
\caption{caption here}
\end{figure*}

\end{document}

This makes it very easy to add figures in a two-column file.