On 5 October 1910, during the Republican Revolution, the palace, because it was the official residence of the king, Manuel II, was shelled by the cruiser "Adamastor", one of the ships stationed in the Tagus River. The salvoes caused some damage to the Palace, and one of the bomblets even reached the king's private quarters on the first floor, but he had taken refuge elsewhere on the palace grounds. Thanks to the quick thinking of an employee of the building, who cut down the flagpole that customarily displayed the royal banner whenever the monarch was in residence, the Republicans were led to believe that Manuel II had abandoned his home. The king did indeed leave Lisbon a few hours later, and he took refuge in the royal palace at Mafra, 28 kilometres northwest of the capital.