Castilla was replaced by his advisor José Rufino Echenique in 1851, who continued his work, as the economy continued to grow. His government was of a conservative nature, which eventually led to conflict with the liberals. On October 23, 1851, Peru signed its first border treaty with Brazil, where it ceded territory in the Amazon rainforest disputed by Ecuador, who claimed the territory as its own.
Castilla was replaced by his advisor José Rufino Echenique in 1851 who continued his work as the economy continued to grow His government was of a conservative nature which eventually led to conflict with the liberals On October 23 1851 Peru signed its first border treaty with Brazil where it ceded territory in the Amazon rainforest disputed by Ecuador who claimed the territory as its own