gunwale

noun: The upper edge of the side of a ship or a boat.