However, Doroji, one of Shivaji's generals, attacked Rajapur. The East India Company had stationed several men in the town, under the charge of Henry Revington to facilitate the trade of saltpeter, pepper, calicoes and cotton. When Rustam-i-Zamani heard about the approach of the Maratha army, he procured funds from one of the Company's brokers and escaped with the money in a junk (ship). Revington sent an English ship "Diamond" to stop him. When confronted by the English, Rustam offered the company the ownership of two of his junks in lieu of payment. At the same time, the Marathas also arrived, and asked the English to hand over the junks to them. The English declined to oblige, unless they were given the money that Rustam owed them. The angry Marathas seized two of the Company's brokers, Baghji and Balaji, in Jaitapur. When the English sent Philip Gyffard to demand their release, he was arrested as well. The three prisoners were taken to Kharepatan fort on 18 January 1660.