Question: who did spain give new orleans and the rest of louisiana to in 1801
Answer: The territory 's boundaries had not been defined in the 1762 Treaty of Fontainebleau that ceded it from France to Spain , nor in the 1801 Third Treaty of San Ildefonso ceding it back to France , nor the 1803 Louisiana Purchase agreement ceding it to the United States .