In 1804, the people of Haiti won the Haitian Revolution, and Haiti became an independent country. Port-au-Prince became the capital of this new country. During the French and Haitian Revolutions, it was called "Port-Républicain", before Jean-Jacques Dessalines renamed it Port-au-Prince.