In 1846, the US and Bogota sign the Bidlack-Mallarino Treaty, granting the US a railroad in Panama and military presence for protection of railroad and prevention of independence of Panama from New Granada. There will be twenty US interventions before 1903, many to suppress independence revolts.