The primary weapon of a warship is typically its guns, which are used for both offensive and defensive purposes. Warships also carry a variety of other weapons, such as missiles, torpedoes, and mines, depending on their mission and role.