A tariff is a tax levied on imported goods and services. Historically, tariffs were a major source of revenue for many countries and were often the primary source of federal revenue through the late-nineteenth century. Today, other taxes account for most government revenue in developed countries. Tariffs are now typically used selectively to protect certain domestic industries, advance foreign policy goals, or as negotiating leverage in trade negotiations.