According to the Dutch constitution, Amsterdam is the capital of the Netherlands, although the parliament and the Dutch government have been situated in The Hague since 1588, along with the Supreme Court and the Council of State. Since the 1983 revision of the Constitution, Article 32 specifically mentions that "the King shall be sworn in and inaugurated as soon as possible in the capital city, Amsterdam", the only reference in the Constitution stating that Amsterdam is the capital.

Only once during its history was Amsterdam both "capital" and seat of government. Between 1808 and 1810, during the Kingdom of Holland, King Louis Napoleon resided in Amsterdam and declared the city capital of his kingdom and seat of government. To accommodate the king, the grand seventeenth-century Town Hall of Amsterdam, prime example of the republican values that were prevalent for so long in the Netherlands, was converted into a Royal Palace.

In 1810 the Netherlands were annexed by the French Empire and King Louis Napoleon was replaced by a French governor, who took up residence in the Royal Palace in Amsterdam. From 1810 to 1813 Amsterdam kept its position of capital city somewhat, as Emperor Napoleon declared the city to be the third city of the Empire (after Paris and Rome) and an imperial residence. In December 1813, after the fall of Napoleon and the accession of Prince William VI of Orange as Sovereign of the Netherlands, The Hague was restored as the seat of government.

More Info: en.wikipedia.org