What is the meaning of Topmast?

The highest mast in a fore-and-aft-rigged ship.

The mast below the topgallant mast in a square-rigged ship.

Source: wiktionary.org