In 1852, he signed a six-year contract to work as a government engineer in
Lima, Peru. Together with two French engineers (Emil Chevalier and Charles Fraguette), he set off on a journey to
Peru, where he arrived on 30 December 1852. After arriving in the capital, he took part in the creation of a new technical organization,
Comisión Central de Ingenieros Civiles, and the first Peruvian technical school,
Escuela Central de Ingenieros Civiles. Difficulties in maintaining and expanding the school quickly arose and Ernest Malinowski withdrew from cooperation in the field of education. Then he implemented several minor construction and road projects. In 1856, he took part in the work of the commission evaluating the project of extension and modernization of Casa de Moneda in Lima, i.e. the state mint. In addition, he published a short study on monetary topics and developed the so-called gold etalon, i.e. the metal content in the coin. He designed (1858) and supervised the paving of streets and squares in
Arequipa as part of the comprehensive reconstruction of the city after the war. He supervised the modernization works of the Izacuchaca stone bridge. After returning to Lima at the end of 1858, he extended his contract with the Peruvian government for another three years. In 1859, together with Mario Alleon and Gerrit Backus, he designed the 74 km
Pisco-
Ica railway line, and in 1864, with Stephen Crosby and D. N. Paddison, he designed the Chimbote to Huaraz railway line, almost 277 km long, with a difference of over 3,000 km. meters. Ernest Malinowski supervised the construction of this line from 1869. Due to financial problems, the project was carried out only on a distance of 136 km. During the armed conflict with Spain in 1866, Ernest Malinowski was appointed chief engineer in the port of Callao near Lima, where, together with Felipe Aranciba and José Cornelio Borda, he prepared a project to fortify the port. He took part in the defense of the port, fighting on the ramparts of the
Santa Rosa fort. In defense of the port, he applied many innovative engineering solutions. M. in. He had armored
large-caliber guns from the surplus after the
American Civil War and placed them on railway platforms so that they could easily change their position. This significantly increased the mobility of
artillery and gave the opponent the impression that the defense had more guns than in reality. In recognition of his services, he received a diploma, a medal and
honorary citizenship of Peru.
Simon Bolivar already spoke about the road connection of the coast with the interior of Peru in 1825. In 1853, Congress passed the Road and Railway Building Act, and in 1859 issued a decree establishing a commission to investigate the possibility of building railroads by the
Andes. Due to the need to implement other investments, the issue of the railway route was postponed. In 1868, Congress issued a new decree on the construction of the Lima-La Oroya railway line (the 10-kilometer section connecting Lima with the port of Callao had been in operation since 1851) and announced a tender to select the most advantageous offer from the financial and technical point of view. A few days after the announcement of
Henry Meiggs' decree, the American entrepreneur obtained permission to conduct preliminary studies of the railway line. This work was entrusted to Ernest Malinowski, who selected his associates. After eight months, on April 3, 1869, he handed over to Henry Meiggs a detailed report of the field studies carried out and a preliminary calculation of construction costs. The project involved connecting Lima with the mineral-rich
Cerro de Pasco region and the fertile
Jauja Valley. In the future, it was possible to extend the railway line along the
Chanchamayo (Spanish) river valley towards the
Amazon River behind the Andes, which would allow Peru to be connected to the
Atlantic Ocean. The contract between the Meiggs company and the government for the construction of the Central Transandino (Central Transandino) was signed on December 23, 1869. In the first point of this contract, Ernest Malinowski was appointed the contractor for the works on the Lima - La Oroy section. The construction was to take six years, and the investment cost was estimated at 27,600,000
sols (approximately $22 million). The whole was to be financed by the Peruvian government, with Henry Meiggs to pay the engineers and workers from his own funds and to buy the land on the route of the railway under construction from private hands, the government undertook to transfer the state land and return the invested money with interest-bearing vouchers. Work began with the ceremonial laying of the foundation stone on January 1, 1870, in Lima. The execution works began on January 20 of that year. Initially, they ran smoothly, as the lines ran along the well-developed valley of the
Rímac River. From 54 kilometers, in an area located at an altitude of 860 m above sea level. Chosica station, the construction entered a mountainous area. After four years of work in extremely difficult climatic and terrain conditions, the railway was traversing the slopes of the mountains, building rock shelves, carving 63 tunnels with a total length of over 6,000 m and building a number of bridges. Among them, one of the largest at that time in the world, 77 m and 175 m long (the so-called Verrugas viaduct) was built. There are big discrepancies in the number of bridges erected. Biographical studies mention the number of 30 bridges built by Malinowski. Watt Stewart, the biographer of Henry Meiggs, gave the number of 61 objects with a total length of 1832 m. Ernest Malinowski in his own cost estimate envisaged 45 bridges, including 3 large ones. The 1918 official description of the railroad lists 23 bridges over 50 feet in length. Over 10 thousand people worked on the construction site. workers. Among them were
Chileans,
Indigenous Peruvians from the Andes, Chinese kulis, immigrants from
Italy and even people of African descent. Malinowski made sure that they had decent working conditions and that they were paid according to the contract. The railway line rose to a height of almost 5,000 m above sea level, becoming a phenomenon of the then technology, including thanks to the use of 10 "zigzags" (reversals) sections, on which the train direction changes. All major technical magazines in the world wrote about this railway, and especially about the bridges and tunnels on its route, and Ernest Malinowski gained the fame of an outstanding engineer. Ernest Malinowski personally supervised the works, imported materials and
rolling stock, kept the accounts on an ongoing basis and corresponded with suppliers, including foreign ones. "He was literally everywhere. On ropes, he ordered himself to be lowered to the bottom of the abyss to test the strength of the soil in the places where the bridge pillars were to be found; how a climber climbed the inaccessible slopes of the mountains to solve detailed technical problems on the spot and direct the robots. He spent the night in a tent in the top parts of the mountains, where the temperature in the morning drops to -14 °C, and the morning heat reaches 26 °C. Together with the workers, he endured snowstorms and scorching sun rays." and San Mateo In 1874, a financial crash occurred in Peru, and the state suspended subsidies for the construction of the railroad. Meiggs' enterprise continued construction with its own funds. Ernest Malinowski also contributed to the financing of further works. Using the money of the American entrepreneur and Ernest Malinowski, the remaining tunnels were punctured, the assembly of bridges was completed and embankments were built for the tracks to Oroja itself. Thanks to these works, the Trans-Andean railway climbed 4,817.8 m above sea level, reaching the highest railway point in the world in the town called La Cima (until 2005, when the higher section of the railway line was built in
Tibet). At that time, Ernest Malinowski did not receive any remuneration. The first stretch of the
Callao-Chicla railway line, 141 km, was put into service in May 1878. During the war between Peru and Chile in 1879–1881 Ernest Malinowski left Peru at the turn of 1879/1880 and came to neighboring Ecuador. He worked on the construction of the
Guayaquil-
Quito railway line, where he oversaw the work on the "Chimbo" and "Sibambe" sections, which led through the high peaks of the Western Cordillera Mountains. While in Ecuador, he published articles about the war in Peru in the local and foreign press (
New York Herald). ==Later life==