What is the role of the navy?

Defend the Sea Lanes of Communication and Commerce for a given nation.