Hangu Pass was heavily defended by the State of Qin, as the only reasonable route to invade the Qin. Laozi was stopped by frontier guards when leaving Hangu Pass for the west. Then Laozi wrote the"Dao De Jing" at Hangu