According to the New York City Department of Buildings, the maximum permitted height for a residential backyard fence is 6 feet. Any fence exceeding this height requires a permit from the Department of Buildings.
Exceptions may apply for certain agricultural or commercial properties, but for typical residential lots in NYC, a 10-foot fence is not allowed without special approval. Always check with the DOB and your local borough office before construction to ensure compliance with zoning and building codes.