A Manhattan law firm with roots dating back to the 19th century will close its doors after merger talks sputtered, partners were pulled in different career directions and the firm faced economic pressures.

Partners in the 24-attorney Hofheimer Gartlir & Gross voted May 31 to dissolve the general practice firm and close by Aug. 31, said managing partner Gerald Morganstern. The 135-year-old firm, known for its real estate transactional work, has counted M&T Bank, E*Trade Financial Corp., Dollar Tree and the late real estate developer Aaron Diamond among its clients.