With respect to its colonies, British mercantilism meant that the government and the merchants became partners with the goal of increasing political power and private wealth, to the exclusion of other European powers. The government protected its merchants—and kept foreign ones out—through trade barriers, regulations, and subsidies to domestic industries in order to maximize exports from and minimize imports to the realm. The government had to fight smuggling, which became a favourite American technique in the 18th century to circumvent the restrictions on trading with the French, Spanish, or Dutch. The goal of mercantilism was to run trade surpluses to benefit the government. The government took its share through duties and taxes, with the remainder going to merchants in Britain. The government spent much of its revenue on the Royal Navy, which both protected the colonies of Britain but was vital in capturing the colonies of other European powers.