This document describes a rule-based approach for entity resolution. It proposes using rules to describe complex matching conditions between records and entities. An online algorithm called R-ER is developed that applies rules to each record to identify which entity it refers to. The paper also proposes an effective and efficient rule discovery algorithm to automatically generate rules from training data. Experimental results on real datasets show that the rule discovery algorithm and R-ER approach can achieve high performance for entity resolution.