The East India Company captured the French controlled port at
Mahé in 1779. Mahé was of great strategic importance to Hyder, who received French-supplied arms and munitions there, and Hyder not only explicitly told the British it was under his protection, he also provided troops for its defence. On 2 July 1780, Hyder declared war on the East India Company, signalling the start of what was later called the Second Anglo-Mysore War (1779–1784). By February 1782, Dharpattom, Nitore, Calicut, and Palakkad Fort surrendered to the British forces under Major Abington. Sardar Ali Khan died later. During the summer of 1782, East India Company officials in
Bombay sent additional troops to Tellicherry, where they continued operations against Mysorean holdings in the Malabar. Hyder sent Tipu and a strong force to counter them, and pinned the force at
Ponnani. Tired of continuous setbacks, Hyder sent an army unit under Makhdoom Ali to Malabar to restrain anti-Mysore activities in the south. Meanwhile, Major Abington and Colonel
Thomas Mackenzie Humberston, who were in Calicut, were ordered to prevent the advance of Makhdoom's army from the south. In the ensuing battle in
Tiroorangadi, more than 400 Mysore soldiers, including Makhdoom, were killed. Colonel Humberston chased the Mysorean army to
Ponnani, with the principal aim of capturing Palakkad Fort. Due to a thundering torrential storm, he retreated to Calicut then moved his unit up to
Trithala near Mankeri Fort, but finally retreated to Ponnani, fearing a surprise attack in the extreme weather conditions. Major
Norman Macleod reached Ponnani before taking over the command of British forces on the Malabar Coast. When Tipu learned of Hyder's sudden death to cancer, his departure from the battlefield provided some relief to the British force, but Bombay officials sent further reinforcements under General Matthews to Ponnani. The British captured Mangalore in March 1783, but Tipu, now the ruler of Mysore, recaptured Bednorem before besieging and recapturing Mangalore. At the same time, near
Tanjore,
Major General James Stuart's army joined Colonel
William Fullarton's, before the latter marched along the
Dindigul-
Dharapuram-Palakkad route and besieged Palakkad Fort. Captain Midland and Sir Thomas under Fullarton captured Palakkad Fort on 14 November 1783. Company officials, having received orders from London to bring an end to the war, entered negotiations with Tipu. Pursuant to a preliminary ceasefire, Fullarton was ordered to abandon all of his recent conquests. However, due to allegations that Tipu had violated terms of the ceasefire at Mangalore, Fullarton remained at Palakkad Fort. During this time, a prince from the Zamorin dynasty emerged and the British retreated, conferring the fort on the prince, but Tipu's forces marched to Palakkad Fort and occupied it and southern Malabar. In December 1783, General Macleod, with fresh support from the French, captured Cannanore from the
Arakkal, who were allies of Mysore in Malabar. This was followed by
Arakkal Beevi's failed negotiation attempt with the British. The war ended on 11 March 1784 with the
Treaty of Mangalore. Both sides agreed to restore the others' lands to the
status quo ante bellum. With the treaty, the British and the Nair kings controlled the entire northern Malabar, Mysore ruled southern Malabar, and Macleod was forced to fall back from Cannanore. ==Between the wars (1784–1789)==