Pedrarias Dávila founded the city of Panama in 1519, the city went into decline, because by order of Pedrarias himself ordered the transfer of the capital of Castilla de Oro to Panama, and of people, livestock and ammunition to the new city. A few years later, Santa María was abandoned, and in 1524 it was recorded that the city was stormed and burned by the natives.