Francisco Pizarro invited the Inca ruler Atahualpa to meet with him in Cajamarca. It was a trap, and when Atahualpa arrived with thousands of men, the Spanish launched a surprise attack, killing many Incas. Atahualpa was taken prisoner. In exchange for his freedom, Atahualpa offered to fill a room with gold and two rooms with silver. However, after the treasure was delivered, the Spanish accused Atahualpa of various crimes and executed him on July 26, 1533, despite his ransom offer.