On October 20.1904 ; Chile and Bolivia sign the Treaty of Peace and Friendship, delimiting the border between the two countries.