From mástel, from maste, from Old French mast (modern mât), with influence from árbol.
Practice speaking and memorizing "mástil" and many other words and sentences in Spanish.