Kingdom of Valencia
The campaign under James II was successful to the point of extending the limits of the Kingdom of Valencia well south of the previously agreed border with Castile. His troops took Orihuela and Murcia. What was to become the definite dividing line between Castile and the Crown of Aragon was finally agreed by virtue of the "Sentencia Arbitral de Torrellas" (1304), amended by the Treaty of Elche (1305), which assigned Orihuela (also Alicante and Elche) to the Kingdom of Valencia, while Murcia went to the Crown of Castile, so drawing the final Southern border of the Kingdom of Valencia.