▁while ▁serving ▁in ▁the ▁West ▁Ind ies , ▁Hay es ▁was ▁promoted ▁to ▁commander ▁and ▁in ▁ 1 8 0 2 ▁became ▁a ▁post ▁captain . ▁For ▁the ▁next ▁seven ▁years ▁he ▁remained ▁in ▁reserve , ▁before ▁taking ▁command ▁of ▁the ▁ship ▁of ▁the ▁line ▁HMS ▁Alfred ▁in ▁ 1 8 0 9 , ▁assist ing ▁in ▁the ▁ev acu ation ▁of ▁troops ▁from ▁Gal icia , ▁Spain ▁following ▁the ▁Battle ▁of ▁Cor un na . ▁Later ▁in ▁the ▁year ▁he ▁served ▁in ▁the ▁Wal ch eren ▁Ex ped ition ▁in ▁HMS ▁Ach ille ▁and ▁then ▁moved ▁to ▁HMS ▁Fre ija ▁in ▁the ▁West ▁Ind ies ▁in ▁December ▁ 1 8 0 9 , ▁almost ▁immediately ▁particip ating ▁in ▁the ▁Action ▁of ▁ 1 8 ▁December ▁ 1 8 0 9 ▁and ▁the ▁invasion ▁of ▁Gu adel oupe . ▁▁ ▁In ▁ 1 8 1 2 , ▁Hay es ▁moved ▁to ▁command ▁HMS ▁Magn ific ent ▁off ▁Br est , ▁and ▁in ▁her ▁gained ▁fame ▁for ▁keeping ▁his ▁ship ▁steady ▁during ▁a ▁g ale ▁while ▁anch ored ▁in ▁the ▁Bas que ▁Ro ads . ▁The ▁wind ▁was ▁so ▁fier ce ▁that ▁Magn ific ent ▁lost ▁both ▁anch ors ▁and ▁was ▁almost ▁driven ▁onto ▁rocks . ▁Only ▁an ▁extremely ▁sk il ful ▁act ▁of ▁se am ans hip ▁from ▁Hay es ▁saved ▁Magn ific ent ▁and ▁her ▁crew ▁from ▁the ▁rocks , ▁and ▁Hay es ▁was ▁afterwards ▁known ▁as ▁the ▁" M agn ific ent ▁Hay es ". ▁In ▁response ▁to ▁a ▁string ▁of