In this task, you are given a question and a context passage. You have to answer the question based on the given passage.
Q: Catalonia used to all be in?, Context: With the Treaty of the Pyrenees (1659), Spain ceded the northern part of Catalonia to France, and soon thereafter the local Catalan varieties came under the influence of French, which in 1700 became the sole official language of the region.
A:
Spain