JPMorgan Chase & Co. agreed today to a $300 million settlement in a class-action lawsuit brought on behalf of 1.3 million homeowners nationwide who claimed they were overcharged for forced-place insurance.

Consumers charged mortgage lenders that received no proof of homeowners insurance imposed policies that were far more expensive than market rates and received hefty commissions from the insurance companies writing the policies.