A Mobile Ad-Hoc Network (MANET) is an infrastructure much less or a self-configured accumulating of mobile nodes that can indiscriminately regulate their geographic places such that those networks have dynamic topologies and random mobility with restricted assets. It commonly works by broadcasting the statistics. Its nature is broadcasting so there's a threat to disrupt community via attacker. The variety of attack can be performed in MANET. The greater extreme is the wormhole attack. Here we're reading about the wormhole attacks its types. In previous work, they detected wormhole attack by using Route Request (RREQ) and Hop Count technique. Malicious node always provides less hop count as compared to the normal path. Hop Count in the wormhole channel is always constant and this can be used to detect the wormhole attack but it is difficult to detect. For detecting wormhole, we proposed tree-based method to detect and prevent an attacker. Construct a tree of network in which source node behaves as a root node and other neighboring nodes are as children. When source send data to destination it search for the paths which should be shortest path. The valid path has established for the transmission of data which protect it from the attacker.