May 12, 1898. After initially being sent to blockade Havana itself, Sampson was given orders to intercept Admiral Cervera's squadron, but with only a vague notion of Cervera's current location, he was unable to actively pursue. Awaiting further information on Cervera's whereabouts, Sampson sailed east to San Juan and carried out a bombardment on May 10 that lasted several days, dealing minor infrastructural damage to the city. After this preliminary bombardment, Sampson helped lead a land-sea attack on San Juan, along with General William Shafter, taking the city. On July 1, following the successful invasion, Sampson returned to Cuba, reinforcing the blockades in Santiago and Cienfuegos. On May 29, elements of Sampson's command spotted Admiral Cervera's squadron moving into Santiago harbor and the naval presence there was greatly increased to prevent Cervera's escape. On the morning of July 3, 1898, Cervera's fleet came out of the harbor. Sampson was ashore at a conference with General Shafter, making plans for a coordinated attack on Santiago. Rear Admiral Winfield Scott Schley was in command of the Flying Squadron in Sampson's absence and met the Spanish fleet, completely destroying every Spanish vessel in a running sea battle lasting five hours. The next day, Rear Admiral Sampson sent his famous message: "The Fleet under my command offers the nation as a Fourth of July present, the whole of Cervera's Fleet". Sampson's message omitted any mention of Schley's leadership in the battle, leading to a controversy as to who was responsible for the victory. While Sampson also arguably played a significant role in the victory, having laid down the strategic framework and determining the favorable positions of his own forces, it was of course Schley who had actually commanded the fleet during the battle. Schley appealed for a court of inquiry, which he got in 1901. In the Navy, the quarrel was so divisive that the rank-and-file identified themselves as either a "Schley man" or a "Sampson man." The court of inquiry heard testimony in support of Schley by his own men and, despite some criticism of Schley, exonerated the commander of the Flying Squadron. After the Battle of Santiago Bay, Sampson was appointed Cuban Commissioner on August 20, 1898, but resumed command of the North Atlantic Fleet in December. He became Commandant of the Boston Navy Yard in October 1899 and transferred to the Retired List on February 9, 1902. Sampson was a companion