As a consequence of the Spanish–American War, Spain sold Palau (including Babeldaob), the Carolines and the Northern Marianas (except Guam) to the German Empire for 17 million goldmark pursuant to the German–Spanish Treaty (1899).