Why is New York Called Gotham?

The word Gotham was first referred o in reference to Manhattan by Washington Irving in the early 19th century. In old English, Gotham, or Gotam, was a city where the residents had a penchant for madness. The name just kind of stuck to New York.