Question: who secured a treaty with spain?
Answer: The treaty was negotiated by Thomas Pinckney for the United States and Manuel de Godoy for Spain.