Louisiana () was an administrative district of the Viceroyalty of New Spain from 1763 to 1801. It included the area west of the Mississippi River basin, plus New Orleans. Spain got the territory from France, which had named it La Louisiane after King Louis XIV in 1682. It is sometimes called Spanish Louisiana. The district was given back to France, under the terms of the Third Treaty of San Ildefonso (1800) and the Treaty of Aranjuez (1801). In 1802, King Charles IV of Spain wrote a royal bill on 14 October. This changed the transfer and outlined the conditions.