Mobile Ad-hoc NETworks (MANETs) routing attacks are considered as a serious issue. However, in the presence of malicious nodes, the networks are affected by various kinds of attacks. The malicious node(s) can attack a MANET in different ways, such as sending fake messages several times; fake routing information and advertising fake links to disrupt routing operations. Black hole attacks are significant attacks that need to be addressed in MANETs. Although, significant research has been done to combat black hole attacks, this paper successfully attempted to detect and prevent the black hole attacks.