In April, Boone sent down the Fame and the Britannia, under Commodore Weekes, to attack Vingorla. They carried a company of sepoys under Stanton, one of the Company's military officers. On the way they were joined by the Revenge, and they also had with them ten or twelve gallivats. Weekes appears to have been timid and incompetent, while the force was altogether insufficient for the purpose. Several days were spent in trying to find a landing-place, without success, on the rocky, surf-beaten shore, while the fortress was bombarded from different points. A violent quarrel occurred between Weekes and Stanton, and the expedition returned to Bombay. This was the first, but not the most serious, of Boone's failures. It was characteristic of all the warlike expeditions he sent out, that while he was indefatigable in preparing armaments, all other details requisite to success were left to chance. The Council resolved that Weekes was unfit to be Commodore, and deposed him. To fill his place the veteran Alexander Hamilton, whose recent defence of the Morning Star had shown his fighting capacity, was induced to relinquish his private trade, and made Commander-in-Chief of all the Company's frigates on a salary of Rs.80 a month. His ship, the Morning Star, was also hired by the Council.

As soon as the monsoon was over, he was required to conduct an expedition to relieve the Carwar factory, which was beleaguered by the Sunda Rajah. The chief of the factory at this time was Mr. George Taylor. In the spring of 1717, a Bombay merchant's ship carrying an English pass and flying English colours had been seized by the Rajah, who imprisoned the crew. Demands for their surrender were being made, when, in May, the Elizabeth, belonging to Mr. Strutt, a private merchant at Surat, with £15,000 worth of treasure on board, went ashore near Carwar. Before more than half the treasure could be removed in safety to the factory, the Rajah sent down an armed force to seize the ship as jetsam, imprisoned the captain and crew, and laid siege to the factory. So Hamilton was sent down with a small squadron and some troops. Fortunately the factory was exceptionally well provisioned. On the 30th August, the Morning Star, with five gallivats and a sloop, arrived off Carwar, and blockaded the harbour till the arrival of Hamilton and the rest of the force on the 12th September. In command of the land force was Midford, one of the Company's factors. On the 13th, the troops were landed, under Midford and Stanton, in a heavy surf which drove the gallivats[1] on shore and upset them, throwing the whole party into the water. Midford, with some of his men, struggled on shore, but Stanton was taken out of the water senseless.[2] In the midst of this scene of confusion they were suddenly charged by the Rajah's horsemen. Half drowned, undisciplined, and with their ammunition spoiled by water, they could make only a feeble resistance. Midford and his English Serjeant, Hill, were desperately wounded and made prisoners, together with five Europeans and forty-seven topasses, while sixty men were killed and two gallivats lost. The wretched topasses had their noses cut off, five European heads were stuck up in derision before the factory, while Midford and Hill were alternately cajoled and threatened to induce them to take service with the Rajah.

In consequence of this disaster, the factory sued for peace, but the Rajah's terms were so humiliating that they were rejected, and it was decided to await further reinforcements from Bombay; but two months elapsed before their arrival. Meanwhile, a post of four hundred men was established on shore to guard the water-supply required for daily use. This gave rise to a skirmish, which put some heart into the invaders. Early one morning the post was attacked by the enemy, who found, to their surprise, that they had come under fire of the guns of some small vessels Hamilton had anchored close inshore. After an hour's cannonade, they broke and fled, pursued by the party on shore, who accounted for some two hundred of them. Encouraged by this success, Stanton continued to harass the Rajah by small night attacks, and by burning some of his villages, while at sea they did him more damage by intercepting his ships laden with salt and other necessaries, and especially three, bringing Arab horses from Muscat; though the captors were much troubled in providing water and provender for them. Meanwhile, the factory, which was five or six miles up the river, on the north bank, continued to be invested, and in order to prevent any communication with the squadron, a boom was laid across the river, commanded by a battery on the south side. In spite of this, communication was kept up through the Portuguese factory, and, more than once, Lieutenant Forbes contrived to pass in and out in a rowing-boat, but it was impossible to send in provisions.

About this time we find Hamilton reporting to Bombay—

"The recruits from Goa had a skirmish at break of day, on 28[th] September, with the enemy, wherein they behaved themselves bravely, but that on an attempt to burn some villages afterwards, they advised the enemy of it, and deserted with some arms and granadoes."

At last the looked-for reinforcements arrived from Bombay, under Captain Gordon, raising the whole strength of the expedition to 2250 men, including seamen, and a landing in force was determined on. Two of the prizes had been equipped as floating batteries, with shot-proof bulwarks, and were laid ashore to engage the Rajah's batteries. At four o'clock in the morning of the 16th November, 1250 men were put ashore, under Gordon, without hindrance from the enemy, who were ready to take to flight before such a force. Gordon's idea was to advance in a hollow square, which, in spite of Hamilton's sneer at him as a 'freshwater land officer,' was a good enough formation in the circumstances; but so much time was consumed in getting the men into the required formation, owing to the inexperience and want of discipline among both officers and men, that the enemy took heart again and advanced to meet them. When the square at last moved forward, with Gordon at their head, they were met with a hot fire, and Gordon was a mark for every aim. Before long he fell, shot in the breast, and Captain Smith, 'commonly called Old Woman,' on whom the command devolved, at once gave the word to retreat. According to Hamilton, 'he pulled off his red coat and vanished.' The Rajah's horsemen charged down, sword in hand, on the disordered ranks; the men threw down their arms and fled to the boats, leaving some two hundred and fifty of their number dead on the field. Fortunately, the floating batteries covered the embarkation, and prevented the enemy, who had suffered some loss, from gathering the spoils of the fallen. Eighty seamen were sent on shore, and brought back about two hundred muskets that had been thrown away in flight, most of them loaded. Thus ingloriously ended the attempts at landing.

The factory was by this time reduced to great straits for food, and this fresh disaster made peace imperative; the Rajah, in spite of his success so far, was anxious to come to an accommodation. The expense of maintaining so many armed men threatened to ruin him; the sea blockade and the detention of the horses were events on which he had not reckoned: and, worse still, his northern borders were harried by the Sow Bajah, 'which made him incline very much towards a peace:' so an agreement was quickly arrived at, and, on the 29th November, peace was proclaimed on easy terms for both parties. The expedition had cost the Company Rs.68,372 in hard cash. The inability of the landing force to advance beyond range of the ships' guns bears witness to their military incapacity.

His short experience of six months under the Company had completely disgusted Alexander Hamilton. Immediately on his return to Bombay he resigned his post as Commander-in-Chief of their ships-of-war, and resumed business as a private trader. His relations with the military officers during the expedition appear to have been satisfactory, but against Taylor, the head of the Carwar factory, he formulated a series of charges, accusing him of having been the cause of the trouble with the Rajah, through his indiscretion and bad faith. Taylor retaliated by accusing Hamilton of not having taken proper measures to relieve the factory. The Council investigated the charges, and contented themselves with cautioning Taylor to behave better in future.

The unfortunate topasses, who had had their noses cut off, were formed into a company of marines, and had their pay augmented to Rs.5 a month.[3] In this odd way the Bombay Marine Battalion appears to have had its origin.

We get some idea of the Sunda Rajahs of the period in a letter from Carwar, dated the 20th January, 1698.