Brown & Bain, once one of the Silicon Valley’s leading intellectual property litigation firms, is closing its Palo Alto office at the end of July.

The decision, which comes after years of setbacks for the office, ends a 20-year run in the Valley for a firm that waged landmark IP wars on behalf of Apple Computer Inc. and Intel Corp.