The Royal Indian Navy (RIN) was the naval force of British India and the Dominion of India. Along with the Presidency armies, later the Indian Army, and from 1932 the Royal Indian Air Force, it was one of the Armed Forces of British India. From its origins in 1612 as the East India Company's Marine, the Navy underwent various changes, including changes to its name. Over time it was named the Bombay Marine (1686), the Bombay Marine Corps (1829), the Indian Navy (1830), Her Majesty's Indian Navy (1858), the Bombay and Bengal Marine (1863), the Indian Defence Force (1871), Her Majesty's Indian Marine (1877) and the Royal Indian Marine (1892). It was finally named the Royal Indian Navy in 1934. However, it remained a relatively small force until the Second World War, when it was greatly expanded. After the partition of India into two independent states in 1947, the Navy was split between Pakistan and India. One-third of the assets and personnel were assigned to Royal Pakistan Navy. Approximately two thirds of the fleet remained with the Union of India, as did all land assets within its territory. This force, still under the name of "Royal Indian Navy", became the navy of the Dominion of India until the country became a republic on 26 January 1950. It was then renamed the Indian Navy. History East India Company 1612–1830, the Bombay Marine The East India Company was established in 1599, and it began to create a fleet of fighting ships in 1612, soon after Captain Thomas Best defeated the Portuguese at the Battle of Swally. This led the company to build a port and to establish a small navy based at Suvali, in Surat, Gujarat, to protect its trade routes. The Company named the force the 'Honourable East India Company's Marine', and the first fighting ships arrived on 5 September 1612. This force protected merchant shipping off the Gulf of Cambay and the rivers Tapti and Narmada. The ships also helped map the coastlines of India, Persia and Arabia. During the 17th century, the small naval fleet consisted of a few English warships and a large number of locally built gunboats of two types, ghurabs and gallivats, crewed by local fishermen. The larger ghurabs were heavy, shallow-draft gunboats of 300 tons (bm) each, and carried six 9 to 12-pounder guns; the smaller gallivats were about 70 tons (bm) each and carried