Capital One has agreed to pay $12 million to resolve allegations the bank violated special consumer protections in federal law for members of the military, the Justice Department announced Thursday.

The government says Capital One wrongfully foreclosed on some homes and improperly repossessed some cars. In addition, the government says the bank obtained wrongful court judgments against some service members and improperly denied interest rate relief on some credit card and car loans.