During the construction of the Panama canal, the initial attempts by France to construct a sea-level canal across the isthmus were secured through treaty with Colombia; however French cost overruns and corruption in the Panama scandals led to abandonment of the Canal for a decade. During the intervening years, local separatists used the political instability of the Thousand Days' War to agitate for political separation from Colombia and establishment of an independent republic. When the United States sought to take over the canal project, the government of Colombia proved difficult to work with, and with the cooperation of French financier Philippe-Jean Bunau-Varilla, Panama simultaneously declared independence from Colombia and negotiated a treaty granting the U.S. the right to construct the canal.