After it was defeated by the United States, Spain decided to get rid of its colonies. In 1898, it planed to sell the Sahara to the Austro-Hungarian Empire.