Amsterdam isn't the capital of Holland for a very simple reason: Holland isn't a country. In fact, this famous region actually has two completely different capitals.
Holland is just a region on the western coast of the Netherlands composed of two distinct provinces. The capital of North Holland is the historic city of Haarlem, located a short train ride west of Amsterdam. Meanwhile, the capital of South Holland is The Hague (Den Haag).
If the question is meant to ask about the capital of the entire nation—the Netherlands—then the answer is, in fact, Amsterdam. However, this introduces another quirk of Dutch geography that often confuses visitors: while Amsterdam is the official capital, it is not the seat of government.
The Hague serves as the political and administrative hub of the Netherlands. It houses the Dutch parliament (the States General), the prime minister's office, the Supreme Court, and all foreign embassies. The Hague has played this administrative role since the Middle Ages, long before the concept of a modern, unified national capital existed in the region.
Amsterdam’s status as the capital is largely ceremonial, tracing back to 1808 when King Louis Napoleon—Napoleon Bonaparte’s brother—declared it the national capital during French rule. After the French left, the Dutch retained Amsterdam as the capital, a status formally cemented in the 1814 Constitution. Today, modern Dutch constitutional law mandates only one specific government function for Amsterdam: it is the city where the monarch must be sworn in and inaugurated. Every other day-to-day function of the state remains firmly anchored 40 miles away in The Hague.