Bismarck confirmed to the German Admiralty that the flag should be raised over the Carolines. On 31 July 1885 Lieutenant Commander Paul Hofmeier, in command of the gunboat
Iltis off
Shanghai, was ordered to carry out the raising of the flag on
Yap and
Palau and to secure treaties of protection with local chiefs to legitimise German occupation. On 4 August 1885, the German authorities informed the Spanish Government that they were extending the area of German protection to the Carolines. Spain's Foreign Minister
José de Elduayen y Gorriti immediately rejected Germany's right to take this step. The Spanish government sent Berlin a note, affirming that the Carolines had belonged to Spain since 1543. A few days later, however, Spain guaranteed freedom of trade for Germans in the Carolines. A hostile press campaign began in Spain, which resulted in anti-German protests. There were demonstrations in
Madrid, where a rally attracted over 30,000 people, and around 80 other places in the country. The Carolines Question allowed Spain's Republican opposition to embarrass King
Alfonso XII, which meant that his government wanted the matter resolved quickly. Bismarck, surprised by the scale of the protests, announced on August 23, 1885, that Germany had no intention of negating established historic rights and proposed to take the matter to arbitration. However Spain produced no evidence of prior ownership and Bismarck was in no hurry to conclude matters before receiving a report from the German navy. On the evening of 2 August 1885 when the German gunboat
Iltis steamed into the harbour at Yap, it found two Spanish warships, the
San Quentin and the
Manila at anchor. They had brought the future Spanish governor as well as priests and soldiers to the island, and construction of a Spanish government post had already begun. Nevertheless, Hofmeier had the German flag raised, which prompted the Spaniards to raise their own flag. It seemed that a fight would follow, but the Spanish withdrew and left the island. ==Commercial concerns==