Chiral symmetry and its spontaneous breaking play an important role both in the light hadron and heavy hadron systems. In this work, we shall review the investigations on the chiral corrections to the properties of the heavy mesons and baryons within the framework of the chiral perturbation theory (χPT). We will also review the scatterings of the light pseudoscalar mesons and heavy hadrons. Moreover, the modern nuclear force was built upon the chiral effective field theory (χEFT). In the past decades many new hadron states were observed experimentally. A large group of these states are near-threshold resonances, such as the charged charmoniumlike Z c and Z cs states, bottomoniumlike Z b states, hidden-charm pentaquark P c and P cs states and the doubly charmed T cc state etc. They are very good candidates of the loosely bound molecular states composed of a pair of charmed hadrons. The same chiral dynamics not only governs the nuclei and forms the deuteron, but also dictates the above shallow bound states or resonances. We will perform an extensive review on the progress on the heavy hadronic molecular states within the framework of χEFT.