The Hats (Swedish: hattarna) were a Swedish political faction active during the Age of Liberty (1719–1772). Their name derives from the tricorne hat worn by officers and gentlemen. They vied for power with the opposing Caps party. In 18th century Swedish politics, the Hats represented conservatives and the Caps represented liberals. The Hats, who ruled Sweden from 1738 to 1765, advocated an alliance with France and an assertive foreign policy, especially towards Russia. During their tenure, they involved Sweden in two expensive and disastrous wars, in the 1740s and 1750s.