"Built between 1874 and 1877 as the Third Judicial District Courthouse, the Jefferson Market Courthouse, located on Sixth Avenue between Greenwich Avenue and West 10th Street, remains a Greenwich Village landmark, albeit serving a very different function. Designed in the American High Victorian Gothic style by the firm Vaux & Withers, it was built to house the Police Court and the District Court. In 1906, Henry Thaw was indicted in this courthouse for the murder of architect Stanford White, whom Thaw suspected of dallying with his wife, the former actress Evelyn Nesbit. Reflecting its judicial function, the building’s sculptural detail includes the trial scene from The Merchant of Venice. The Sixth Avenue El rumbled past the courthouse from 1878 to 1939. By 1958, the building had not been used as a courthouse for over 10 years, and the City was planning to sell the entire block to private developers. Before the enactment of New York City’s Landmarks Preservation Law, a grassroots preservation group succeeded in eliciting the support of then Mayor Robert Wagner, who prevailed on the New York Public Library to acquire the building for a branch library, which it remains to this day."
For more on Jefferson Market Library and NYC's other 'lost' courthouses, check out this article by Robert Pigott in Gotham: A Blog for Scholars of New York City History.