The invention discloses an IPv6 over low power wireless personal area network (6LoWPAN) neighbor discovery-based tree routing method, which relates to the field of wireless sensor networks and comprises the following steps of: a, when a 6LoWPAN sensor node is added into the network, establishing a root node of tree topology, and configuring the basic information of the network to the root node; b, adding other ordinary nodes into the network; and c, forming routing. Moreover, the step c comprises the following steps of: under any one of the three conditions of leaf node invalidation or leaving, non-leaf node invalidation or leaving and node movement, triggering a routing restoring process; and under any one of the three conditions of no leaf node invalidation or leaving, no non-leaf node invalidation or leaving and no node movement, finishing the processing. In the 6LoWPAN neighbor discovery-based tree routing method, an additional routing protocol message is not required to be transmitted and received, so the bandwidth and the routing calculation overhead are reduced, energy consumption produced in the message transmission of the nodes is saved, and the energy consumption and routing overhead of the whole network are further reduced.