In the north, it borders Ecuador and Colombia, in the east with Brazil and Bolivia, in the south with Chile, and in the west with the Pacific Ocean.