Shivaji intended to reconcile with his half-brother Venkoji (Ekoji I), Shahaji's son by his second wife, Tukabai (née Mohite), who ruled Thanjavur (Tanjore) after Shahaji. The initially promising negotiations were unsuccessful, so whilst returning to Raigad, Shivaji defeated his half-brother's army on 26 November 1677 and seized most of his possessions in the Mysore plateau. Venkoji's wife Dipa Bai, whom Shivaji deeply respected, took up new negotiations with Shivaji and also convinced her husband to distance himself from Muslim advisors. In the end, Shivaji consented to turn over to her and her female descendants many of the properties he had seized, with Venkoji consenting to a number of conditions for the proper administration of the territories and maintenance of Shivaji's future memorial ("samadhi").