The corvette Magallanes was ordered by the Chilean government after the disastrous consequences of the War against Spain in 1864-1866 and the rising border conflict with the neighboring countries at the end of the 1870s.