Chanakya (ISO: , चाणक्य, ), according to legendary narratives preserved in various traditions dating from the 4th to 11th century CE, was a Brahmin who assisted the first Mauryan emperor Chandragupta in his rise to power and the establishment of the Maurya Empire. According to these narratives, Chanakya served as the chief adviser and prime minister to both emperors Chandragupta Maurya and his son Bindusara.

Conventionally, Chanakya was identified with Kauṭilya and synonymously Vishnugupta, the author of the ancient Indian politico-economic treatise Arthashastra. Arthashastra is now thought with high probability to have been composed by multiple authors during the early centuries of the common era—several centuries after the Mauryan period—the backdated identification with Chanakya to have served to add prestige to the work.

Chanakya-Chandragupta katha (legend)

There is no documented historical information about Chanakya: narratives about him come from legendary accounts. Thomas Trautmann identifies four distinct accounts of the ancient Chanakya-Chandragupta katha (legend): Buddhist version: Mahavamsa (5th-6th cent. CE) and its commentary Vamsatthappakasini (Pali language) Jain version: Parishishtaparvan (12th cent. CE) by Hemachandra, based on 1st-8th century sources Kashmiri version: Kathasaritsagara (11th cent. CE) by Somadeva, Brihat-Katha-Manjari by Ksemendra Vishakhadatta's version: Mudrarakshasa (4th-8th cent. CE), a Sanskrit play by Vishakhadatta; largely fictional

In all the four versions, Chanakya feels insulted by the Nanda king, and vows to destroy him. After dethroning the Nanda, he installs Chandragupta as the new king.

Buddhist version (5th-6th cent. CE)

Source The legend of Chanakya and Chandragupta is detailed in the Pali-language Buddhist chronicles of Sri Lanka. It is not mentioned in Dipavamsa, the oldest of these chronicles. The earliest Buddhist source to mention the legend is Mahavamsa, which is generally dated between fifth and sixth centuries CE. Vamsatthappakasini (also known as Mahvamsa Tika), a commentary on Mahavamsa, provides some more details about the legend. Its author is unknown, and it is dated variously from sixth century CE to 13th century CE. Some other texts provide additional details about the legend; for example, the Maha-Bodhi-Vamsa and the Atthakatha give the names of the nine Nanda kings said to have preceded Chandragupta.

Narrative According to the Buddhist legend, the Nanda emperors who preceded Chandragupta were robbers-turned-rulers. Chanakya (IAST: Cāṇakka in Mahavamsa) was a Brahmin from Takkāsila (Takshashila). He was well-versed in three Vedas and politics. He was born with canine teeth, which were believed to be a mark of royalty. His mother feared that he would neglect her after becoming an emperor. To pacify her, Chanakya broke his teeth.

Chanakya had an ugly appearance, accentuated by his broken teeth and crooked feet. One day, the Emperor Dhana Nanda organised an alms-giving ceremony for Brahmins. Chanakya went to Pupphapura (Pushpapura) to attend this ceremony. Disgusted by his appearance, the emperor ordered him to be thrown out of the assembly. Chanakya broke his sacred thread in anger, and cursed the emperor. The emperor ordered his arrest, but Chanakya escaped in the disguise of an Ājīvika. He befriended Dhananada's son Pabbata, and instigated him to seize the throne. With help of a signet ring given by the prince, Chanakya fled the palace through a secret door.

Chanakya escaped to the Vinjha forest. There, he made 800 million gold coins (kahapanas), using a secret technique that allowed him to turn 1 coin into 8 coins. After hiding this money, he started searching for a person worthy of replacing Dhana Nanda. One day, he saw a group of children playing: the young Chandragupta (called Chandagutta in Mahavamsa) played the role of an emperor, while other boys pretended to be vassals, ministers, or robbers. The "robbers" were brought before Chandragupta, who ordered their limbs to be cut off, but then miraculously re-attached them. Chandragupta had been born in a royal family, but was brought up by a hunter after his father was killed by an usurper, and the devatas caused his mother to abandon him. Astonished by the boy's miraculous powers, Chanakya paid 1000 gold coins to his foster-father, and took Chandragupta away, promising to teach him a trade.

Chanakya had two potential successors to Dhana Nanda: Pabbata and Chandragupta. He gave each of them an amulet to be worn around the neck with a woolen thread. One day, he decided to test them. While Chandragupta was asleep, he asked Pabbata to remove Chandragupta's woolen thread without breaking it and without waking up Chandragupta. Pabbata failed to accomplish this task. Some time later, when Pabbata was sleeping, Chanakya challenged Chandragupta to complete the same task. Chandragupta retrieved the woolen thread by cutting off Pabbata's head. For the next seven years, Chanakya trained Chandragupta for imperial duties. When Chandragupta became an adult, Chanakya dug up his hidden treasure of gold coins, and assembled an army.

The army of Chanadragupta and Chanakya invaded Dhana Nanda's empire, but disbanded after facing a severe defeat. While wandering in disguise, the two men once listened to the conversation between a woman and her son. The child had eaten the middle of a cake, and thrown away the edges. The woman scolded him, saying that he was eating food like Chandragupta, who attacked the central part of the empire instead of conquering the border villages first. Chanakya and Chandragupta realised their mistake. They assembled a new army, and started conquering the border villages. Gradually, they advanced to the empire's capital Pataliputra (Pāṭaliputta in Mahavamsa), where they killed the Emperor Dhana Nanda. Chanakya ordered a fisherman to find the place where Dhana Nanda had hidden his treasure. As soon as the fishermen informed Chanakya about its location, Chanakya had him killed. Chanakya anointed Chandragupta as the new emperor, and tasked a man named Paṇiyatappa with eliminating rebels and robbers from the empire.

Chanakya started mixing small doses of poison in the new emperor's food to make him immune to poisoning attempts by the enemies. Chandragupta, who was not aware of this, once shared the food with his pregnant empress Durdhara, who was seven days away from delivery. Chanakya arrived just as the empress ate the poisoned morsel. Realising that she was going to die, Chanakya decided to save the unborn child. He cut off the empress's head and cut open her belly with a sword to take out the foetus. Over the next seven days, he placed the foetus in the belly of a goat freshly killed each day. After seven days, Chandragupta's son was "born". He was named Bindusara because his body was spotted with drops (bindu) of goat's blood.

The earliest Buddhist legends do not mention Chanakya in their description of the Mauryan dynasty after this point. Dhammapala's commentary on Theragatha, however, mentions a legend about Chanakya and a Brahmin named Subandhu. According to this account, Chanakya was afraid that the wise Subandhu would surpass him at Chandragupta's court. So, he got Chandragupta to imprison Subandhu, whose son Tekicchakani escaped and became a Buddhist monk. The 16th-century Tibetan Buddhist author Taranatha mentions Chanakya as one of Bindusara's "great lords". According to him, Chanakya destroyed the nobles and kings of 16 towns and made Bindusara the master of all the territory between the eastern and the western seas (Arabian Sea and the Bay of Bengal).

Jain version (12th cent. CE, based on 1st-8th cent. CE sources)

Source The Chandragupta-Chanakya legend is mentioned in several commentaries of the Shvetambara canon. The most well-known version of the Jain legend is contained in the Sthaviravali-Charita or Parishishta-Parvan, written by the 12th-century writer Hemachandra. Hemachandra's account is based on the Prakrit kathanaka literature (legends and anecdotes) composed between the late first century CE and mid-8th century CE. These legends are contained in the commentaries (churnis and tikas) on canonical texts such as Uttaradhyayana and Avashyaka Niryukti.

Thomas Trautmann believes that the Jain version is older and more consistent than the Buddhist version of the legend.

Narrative According to the Jain account, Chanakya was born to two lay Jains (shravaka) named Chanin and Chaneshvari. His birthplace was the Chanaka village in Golla vishaya (district). The identity of "Golla" is not certain, but Hemachandra states that Chanakya was a Dramila, implying that he was a native of South India.

Chanakya was born with a full set of teeth. According to the monks, this was a sign that he would become a king in the future. Chanin did not want his son to become haughty, so he broke Chanakya's teeth. The monks prophesied that the baby would go on to become a power behind the throne. Chanakya grew up to be a learned shravaka, and married a Brahmin woman. Her relatives mocked her for being married to a poor man. This motivated Chanakya to visit Pataliputra, and seek donations from the Emperor Nanda, who was famous for his generosity towards Brahmins. While waiting for the emperor at the imperial court, Chanakya sat on the emperor's throne. A dasi (slave woman) courteously offered Chanakya the next seat, but Chanakya kept his kamandal (water pot) on it, while remaining seated on the throne. The servant offered him a choice of four more seats, but each time, he kept his various items on the seats, refusing to budge from the throne. Finally, the annoyed servant kicked him off the throne. Enraged, Chanakya vowed to uproot Nanda and his entire establishment, like "a great wind uproots a tree".

Chanakya knew that he was prophesied to become a power behind the throne. So, he started searching for a person worthy of being a king. While wandering, he did a favour for the pregnant daughter of a village chief, on the condition that her child would belong to him. Chandragupta was born to this lady. When Chandragupta grew up, Chanakya came to his village and saw him playing "king" among a group of boys. To test him, Chanakya asked him for a donation. The boy told Chanakya to take the cows nearby, declaring that nobody would disobey his order. This display of power convinced Chanakya that Chandragupta was the one worthy of being a king.

Chanakya took Chandragupta to conquer Pataliputra, the capital of Nanda. He assembled an army using the wealth he had acquired through alchemy (dhatuvada-visaradan). The army suffered a severe defeat, forcing Chanakya and Chandragupta to flee the battlefield. They reached a lake while being pursued by an enemy officer. Chanakya asked Chandragupta to jump into the lake, and disguised himself as a meditating ascetic. When the enemy soldier reached the lake, he asked the 'ascetic' if he had seen Chandragupta. Chanakya pointed at the lake. As the soldier removed his armour to jump into the lake, Chanakya took his sword and killed him. When Chandragupta came out of the water, Chanakya asked him, "What went through your mind, when I disclosed your location to the enemy?" Chandragupta replied that he trusted his master to make the best decision. This convinced Chanakya that Chandragupta would remain under his influence even after becoming the king. On another occasion, Chanakya similarly escaped the enemy by chasing away a washerman, and disguising himself as one. Once, he cut open the belly of a Brahmin who had just eaten food, and took out the food to feed a hungry Chandragupta.