On 21 January 1805
Raven sailed to join Lord Nelson's squadron with dispatches for him and for Sir
John Orde off Cadiz. She arrived at the rendezvous on 29 January, some two to ten
leagues off Cadiz, however Orde's squadron was not there. Layman reduced sail and hove to for the night. A
leadline sounding was taken, which showed that there was no bottom at . He assumed that
Raven was well offshore and retired, leaving instructions that the watch should throw the lead every half hour. At about midnight the officer of the watch called with the news that he had sighted the lights of the squadron. Before he could get on deck the officer of the watch came down the ladder, apparently agitated, and reported that the lights were those of Cadiz, not the squadron. Layman immediately went on deck and ordered a sounding be taken. It showed , rapidly shoaling to as he turned
Raven about. At daylight Layman discovered that
Raven was close inshore with Spanish warships at anchor off Cadiz on the one side and batteries in a fort at Santa Catalina on the other. Unwilling to surrender, and in spite of a strong wind from the west, he managed to clear the shoals. However, the main yard broke "in the slings" and Layman was forced to anchor
Raven off Rota. The wind increased to gale strength and eventually the heavy seas caused the anchor cables to part. The gale then threw
Raven onto the beach at Santa Catalina. Layman threw the despatches he was carrying overboard, weighted with 32-pounder shot. He lost only two men; they had disobeyed his orders and drowned while trying to reach shore at the height of the gale during the high tide. Once the tide receded it was easy for the crew to land on the beach.
Raven herself was unsalvageable, though the Spaniards were able to recover her carronades. The Spanish took the crew prisoner but permitted the officers to move freely within a radius of . Shortly thereafter the officers were exchanged. ==Court-martial==