Target Corp. has resolved its 2013 data breach with a deal that represents the largest multi-state data breach settlement in history.

The retailer agreed to pay a total of $18.5 million to settle the case. The money will go to 47 states and the District of Columbia, with California receiving the largest share of the settlement, more than $1.4 million.

The agreement also requires Target to develop, implement and maintain a comprehensive information security program aimed at encrypting…