The genre was invented by Horace Walpole, whose Castle of Otranto (1765) may be said to have founded the horror story as a legitimate literary form.