The border between Costa Rica and Panama is 348 km (216 mi) long. The border in its present state is demarcated by the Echandi-Fernandez Treaty of 1941.