After a period of relative peace, the Navy became engaged in the War of Jenkins' Ear (1739–1748) against Spain, which was dominated by a series of costly and mostly unsuccessful attacks on Spanish ports in the Caribbean.