formulated his own plan to defeat Krishandevaraya and the Vijayanagara Empire at the fort of Kalinganagar. But the wily Timmarusu discovered Prataparudra's plan by bribing a Telugu deserter from the service of Prataparudra. When the Vijayanagara Empire did invade, Prataprudra was driven to Cuttack, the capital of the Gajapati Kingdom. Prataparudra eventually surrendered to the Vijayanagara Empire, and gave his daughter, Princess Jaganmohini, in marriage to Sri Krishnadevaraya. Krishandevaraya returned all the lands that the Vijayanagara Empire had captured north of the Krishna River; this made the Krishna river the boundary between the Vijayanagar and Gajapati Kingdoms. Krishnadevaraya established friendly relations with the Portuguese in Goa in 1510. The Emperor obtained guns and Arabian horses from the Portuguese merchants. He also utilized Portuguese expertise to improve the water supply to Vijayanagara City. Final conflict and death The complicated alliances of the empire and the five Deccan sultanates meant that he was continually at war. In one campaign, he defeated Golconda and captured its commander Madurul-Mulk, crushed Bijapur and its sultan Ismail Adil Shah, and restored the Bahmani sultanate to the son of . The highlight of his conquests occurred on 19 May 1520 where he secured Raichur Fort from Ismail Adil Shah after a difficult siege in which 16,000 Vijayanagara soldiers were killed. The exploits of the military commander, Pemmasani Ramalinga Nayudu of the Pemmasani Nayaks, during the Battle of Raichur were distinguished and lauded by Krishnadevaraya. It is said that 700,000-foot soldiers, 32,600 cavalry, and 550 elephants were used. Portuguese contingent commanded by Cristovão de Figueiredo with the use of fireweapons help to conquer the fortress, Krishnadevaraya was brutal towards Bahmani Generals of Raichur. Many Bahmani generals lost their lands. The other Muslim kings sent envoys to the emperor on hearing of his success and received a haughty reply.. The king conveyed that if Adil Shah would come to him, do obeisance, and kiss his foot, his lands would be restored to him. The submission never took place. Krishnadevaraya then led his army as far north as Bijapur and occupied it. He imprisoned three sons of a former king of the Bahmani dynasty, who had been held captive by the Adil Shah and he proclaimed the eldest as king of the Deccan. Finally, in his last battle, he razed to the ground the fortress of Gulburga, the early capital of the Bahmani sultanate. In 1524, Krishnadevaraya made his son