Panama Canal Railway
The Panama Railway also operated a significant shipping line, connecting its service with New York and San Francisco. It ran a Central American line of steamships linking Nicaragua, Costa Rica, San Salvador, and Guatemala to Panama City. The shipping service was greatly expanded when canal construction began. Ships included the SS "Salvador", SS "Guatemala", SS "Cristobel", and , which became the first of the ships to cross the completed canal in 1914.
In 1904 the United States took over the license to build and operate the canal. The choice to use locks and an artificial lake (Gatun) meant that the old railway route from 1855 had to be changed because it followed the Chagres River valley, which would be flooded by the lake. Also, the railway would be extended and altered continuously for the building process. The stock of the Panama Railway Company, vital in canal construction, was entirely controlled by the United States Secretary of War.
Panama Canal
On November 2, 1903, US warships blocked sea lanes against possible Colombian troop movements en route to put down the Panama rebellion. Panama declared independence on November 3, 1903. The United States quickly recognized the new nation. On November 6, 1903, Philippe Bunau-Varilla, as Panama's ambassador to the United States, signed the Hay–Bunau-Varilla Treaty, granting rights to the United States to build and indefinitely administer the Panama Canal Zone and its defenses. This is sometimes misinterpreted as the "99-year lease" because of misleading wording included in article 22 of the agreement. Almost immediately, the treaty was condemned by many Panamanians as an infringement on their country's new national sovereignty. This would later become a contentious diplomatic issue among Colombia, Panama, and the United States.