 With the Bijapur raids threatening the region , Shivappa Nayaka moved the capital once again , this time to Bednur ( later Nagar ) , which was deemed safer . ( See Map 6 . ) Shivappa Nayaka rapidly took possession of a region that extended east to Shimoga , south to Manjarabad , and west through most of the Kanara coast . When the last king of Vijayanagara sought refuge in his realms , Shivappa Nayaka set him up at Belur and Sakkarepatna , and later mounted an unsuccessful siege of Seringapatam on the latter 's behalf . By the 1650s , he had driven the Portuguese out of the three fortalezas at Onor , Barcelore , and Mangalore . After his death in 1660 , his successor Somashker Nayaka , however , sent an embassy to Goa for reestablishing the Portuguese trading posts in Kanara . By 1671 a treaty , which was very favorable once again to the Portuguese , had been agreed to . ( See Map 8 and Map 9 . ) 
