In Wireless Sensor Networks (WSN), the existing techniques for target tracking and localization have increased latency and complexity. In this paper, the authors propose a target tracking and localization technique based on the Ant colony optimization with the help of anchor nodes. Initially a set of anchor nodes are deployed using the distance between the nodes. The Ant based routing protocol is used to find the best route with the shortest hop distance by acquiring the proximity information between every pair of anchor nodes. When a sensor node detects the target, the localization process is carried out using the anchor nodes and the position of the target is tracked using Ant agents and the gathered information is transmitted to the sink.