The history of the ambulance begins in ancient times, with the use of carts to transport patients. Ambulances were first used for emergency transport in 1487 by the Spanish forces during the siege of Málaga by the Catholic monarchs against the Emirate of Granada, and civilian variants were put into operation in the 1830s. Advances in technology throughout the 19th and 20th centuries led to the modern self-powered ambulances.