The hairpin structure is a common and fundamental secondary structure in macromolecules. In this work, the process of the translocation of a model polymer chain with a hairpin structure is studied using Langevin dynamics simulations. The simulation results show that the dynamics of hairpin polymer translocation through a nanopore are influenced by the hairpin structure. Hairpin polymers can be classified into three categories, namely, linear-like, unsteady hairpin, and steady hairpin, according to the interaction with the stem structure. The translocation behavior of linear-like polymers is similar to that of a linear polymer chain. The time taken for the translocation of unsteady hairpin polymers is longer than that for a linear chain because it takes a long time to unfold the hairpin structure, and this time increases with stem interaction and decreases with the driving force. The translocation of steady hairpin polymers is distinct, especially under a weak driving force; the difficulty of unfolding the hairpin structure leads to a low translocation probability and a short translocation time. The translocation behavior of hairpin polymers can be explained by the theory of the free-energy landscape.