Neptune has appeared in fiction since shortly after its 1846 discovery, albeit infrequently. It initially made appearances indirectly—e.g. through its inhabitants—rather than as a setting. The earliest stories set on Neptune itself portrayed it as a rocky planet rather than as having its actual gaseous composition; later works rectified this error. Extraterrestrial life on Neptune is uncommon in fiction, though the exceptions have ranged from humanoids to gaseous lifeforms. Neptune's largest moon Triton has also appeared in fiction, especially in the late 20th century onwards.