A unit of Fokker Technologies of the Netherlands, a leading aerospace company and Pentagon contractor, has agreed to pay $21 million in penalties to settle accusations that it repeatedly violated American sanctions on sales of aircraft parts to Iran and Sudan, the United States government announced Thursday.

A statement by the Treasury Department, which oversees compliance with sanctions, said the unit, Fokker Services, had agreed to pay a $10.5 million civil penalty to the Treasury and Commerce Departments and another $10.5 million under a deferred-prosecution agreement with the Justice Department. The statement said the company, which could have been liable for a potential $51 million in penalties, had accepted “responsibility for its egregious conduct involving over 1,150 alleged violations of U.S. sanctions.”

The Treasury statement also served as a reminder that despite a temporary agreement with Iran over its disputed nuclear energy program, which eased some sanctions on the country, most restrictions remain in force.

Sanctions on Sudan, in force since 1997, reflect the United States government’s response to what it has described as Sudan’s aid to international terrorism and systematic human rights violations, including atrocities committed during the Darfur conflict.

Fokker, a century-old Dutch aviation company that was the No. 1 aircraft manufacturer in the 1920s, has evolved into a major provider of specialized systems and parts for aircraft makers.

The Treasury statement said that from 2005 to 2010, the company indirectly exported or re-exported aircraft spare parts to Iranian or Sudanese customers without the required licensing by government authorities. The settlement covered 1,112 apparent violations of Iranian sanctions and 41 apparent violations of Sudanese sanctions.

Fokker, which first disclosed that it was in settlement discussions in February, acknowledged the settlement agreement in a statement on its website, saying the company “sincerely regrets the historic conduct.”

Correction: June 5, 2014
An earlier version of this article referred imprecisely to the business that agreed to settle the accusations of sanctions violations. It was Fokker Services, a unit of Fokker Technologies, not Fokker Technologies.