\documentclass[main.tex]{subfiles}

\begin{document}
\chapter{Subfile chapter}
Lorem ipsum...

\end{document}
