Chain is a linked series of metal loops. Common uses on ships are for removable railings and mooring.
Anchor chains provide a positive connection between a vessel and its anchor. Anchor chains are often stored in the ships chain locker. The weight of the chain resists movement of the ship, with the anchor serving to lay out and position the chain (more than to positively stop vessel motions).