Cajamarca is located in the north part of Peru and shares a border with Ecuador. The capital is the homonymous city of Cajamarca. It is landlocked in the Andes Mountain Range and has heights between 420 m asl and 4,496 m asl.