Timoji (also referred to as Timoja or Timmayya) was a privateer who served the Vijayanagara Empire and the Portuguese Empire during the first decade of the 16th century. He claimed to have been born in Goa and to have escaped the city after its conquest by the Adil Shahi of Bijapur in 1496. After his support in the 1510 Portuguese conquest of Goa, he was for a short time appointed aguazil of the city.
Since the 14th century the Deccan had been divided in two antagonistic entities: on the one side stood the Muslim Bahmani Sultanate, and on the other stood the native Rajas rallied around the Vijayanagara Empire. Continuous wars demanded frequent resupplies of fresh horses, which were imported through sea routes from Persia and Arabia. This trade was subjected to frequent raids by thriving bands of pirates based in the coastal cities of Western India. Timoji acted both as a privateer (by seizing horse traders, that he rendered to the raja of Honavar) and as a pirate who attacked the Kerala merchant fleets that traded pepper with Gujarat. Timoji operated off Anjediva (modern Anjadip) Island, with two thousand mercenaries under his command and at least fourteen ships.
He met Vasco da Gama's fleet off Anjediva in 1498, but the Portuguese admiral suspected him of being a spy and refused his advances. In 1505, he attracted the Portuguese Vice-Roy Dom Francisco de Almeida to an estuary and, after keeping him waiting for three days, appeared before him richly attired and offered him his services and a token tribute. In 1507 Timoji warned the Vice-Roy of the upcoming siege of Cannanore by Calicut forces and supplied the Portuguese St. Angelo Fort during the siege. In the end of 1507, when a Mamluk fleet under Amir Husain Al-Kurdi (named "Mirocem" by the Portuguese) supplements the Calicut forces, he becomes the main informant of Dom Francisco de Almeida. Soon after the Battle of Diu, Timoji met the Vijayanagara emperor Krishnadevaraya and offered him a rich tribute. He then prompted the Portuguese to conquer Goa, the main port for the horse trade. The city had been conquered from Vijayanagar by the Bahmani Sultans in 1469, and passed to Bijapur. In late 1509, the remains of the Mamluk fleet defeated in the battle of Diu had taken refuge there.