To GAIN the wind, in sea-language, is to arrive on the weather-side or to windward of some other vessel in sight, when both are plying to windward, or sailing as near the wind as possible.