what is the thing that holds up sails on boats
A mast. Although it is attached to a mast the thing that holds a sail up is a halyard.