Louis XV saw little value in Louisiana, and to compensate Spain for its losses in the Seven Years' War, he transferred Louisiana to his cousin Charles III in 1762. Louisiana remained under the control of Spain until it was demanded to be turned over to France by Napoleon. Although Louisiana was property of France by the Third Treaty of San Ildefonso in 1800, Louisiana continued to be administered by Spain until the Louisiana Purchase in 1803. Following the American acquisition of the territory, its population tripled between 1803 and Louisiana statehood in 1812.