A stone frigate is a naval establishment on land. "Stone frigate" is an informal term that has its origin in Britain's Royal Navy after its use of Diamond Rock, an island off Martinique, as a 'sloop of war' to harass the French in 1803–04. The Royal Navy was prohibited from ruling over land, so the land was commissioned as a ship. The command of this first stone frigate was given to Commodore Hood's first lieutenant, James Wilkes Maurice, who, with cannon taken off the Commodore's ship, manned it with a crew of 120 until its capture by the French in the Battle of Diamond Rock in 1805. Until the late 19th century, the Royal Navy housed training and other support facilities in hulks—old wooden ships of the line—moored in ports as receiving ships, depot ships, or floating barracks. The Admiralty regarded shore accommodation as expensive and liable to lead to indiscipline. These floating establishments kept their names while the actual vessels housing them changed. For example, the gunnery training school at Portsmouth occupied three ships between its foundation in 1830 and its move ashore in 1891 but all were named (or renamed) HMS Excellent. As ships began to use increasingly complex technology during the late 19th century, these facilities became too large to continue afloat and were moved to shore establishments while keeping their names. An early "stone frigate" was the engineering training college HMS Marlborough, moved ashore to Portsmouth in 1880. The gunnery school continued to be named HMS Excellent after its move ashore to Whale Island in 1891. By World War I there were about 25 "stone frigates" in the United Kingdom. Under section 87 of the Naval Discipline Act 1866, the provisions of the act only applied to officers and men of the Royal Navy borne on the books of a warship. When shore establishments began to become more common it was necessary to allocate the title of the establishment to an actual vessel which became the nominal depot ship for the men allocated to the establishment and thus ensured they were subject to the provisions of the Act. By example, in the Imperial fortress colony of Bermuda, the depot ship permanently berthed at the Royal Naval Dockyard from 1857 to 1897 was HMS Terror, which was replaced by the former troopship (renamed HMS Terror in 1901). The former HMS Malabar was sold in 1918, following which