On a square rigged ship, the spanker is a gaff-rigged fore-and-aft sail set from and aft of the aftmost mast.