For leaving his post in Stockholm without permission to join the Emperor Pedro II on his European visit, Gobineau was told in January 1877 to either resign from the Quai d'Orsay or be fired; he chose the former.[citation needed]