After losing the American colonies in the American Revolution, Britain turned towards Asia, the Pacific and later Africa with subsequent exploration leading to the rise of the Second British Empire (1783–1815). The Industrial Revolution began in Great Britain in the late 1700s and new ideas emerged about free markets, such as Adam Smith's The Wealth of Nations (1776). Free trade became a central principle that Britain practiced by the 1840s. It played a key role in Britain's economic growth and financial dominance.
From the end of the Napoleonic Wars in 1815 until World War I in 1914, the United Kingdom played the role of global hegemon (most powerful actor). Imposition of a "British Peace" on key maritime trade routes began in 1815 with the annexation of British Ceylon (now Sri Lanka). Under the British Residency of the Persian Gulf, local Arab rulers agreed to a number of treaties that formalised Britain’s protection of the region. Britain imposed an anti-piracy treaty, known as the General Maritime Treaty of 1820, on all Arab rulers in the region. By signing the Perpetual Maritime Truce of 1853, Arab rulers gave up their right to wage war at sea in return for British protection against external threats. The global superiority of British military and commerce was aided by a divided and relatively weak continental Europe, and the presence of the Royal Navy on all of the world's oceans and seas. Even outside its formal empire, Britain controlled trade with many countries such as China, Siam, and Argentina. Following the Congress of Vienna the British Empire's economic strength continued to develop through naval dominance and diplomatic efforts to maintain a balance of power in continental Europe.
In this era, the Royal Navy provided services around the world that benefited other nations, such as the suppression of piracy and blocking the slave trade. The Slave Trade Act 1807 had banned the trade across the British Empire, after which the Royal Navy established the West Africa Squadron and the government negotiated international treaties under which they could enforce the ban. Sea power, however, did not project on land. Land wars fought between the major powers include the Crimean War, the Franco-Austrian War, the Austro-Prussian War and the Franco-Prussian War, as well as numerous conflicts between lesser powers. The Royal Navy prosecuted the First Opium War (1839–1842) and Second Opium War (1856–1860) against Imperial China. The Royal Navy was superior to any other two navies in the world, combined. Between 1815 and the passage of the German naval laws of 1890 and 1898, only France was a potential naval threat.
Britain traded goods and capital extensively with countries around the world, adopting a free trade policy after 1840. The growth of British imperial strength was further underpinned by the steamship and the telegraph, new technologies invented in the second half of the 19th century, allowing it to control and defend the empire. By 1902, the British Empire was linked together by a network of telegraph cables, the so-called All Red Line.
The Pax Britannica was weakened by the breakdown of the continental order which had been established by the Congress of Vienna. Relations between the Great Powers of Europe were strained to breaking point by issues such as the decline of the Ottoman Empire, which led to the Crimean War, and later the emergence of new nation states in the form of Italy and Germany after the Franco-Prussian War. Both of these wars involved Europe's largest states and armies. The industrialisation of Germany, the Empire of Japan, and the United States contributed to the relative decline of British industrial supremacy in the Late 19th century.