A jib is a triangular staysail set ahea of the foremost mast of a sailing boat. Its tack is fixed to the bowsprit, to the bow, or to the deck between the bowsprit and the foremost mast. Jibs and spinnakers are the two main types of headsails on a modern boat.