In 1845, slavery was abolished in Peru, financial reform was introduced, the railway was expanded and a universal education system was created. At that time, the country was shaken by numerous coups d'état, after which presidents changed.