A former Peruvian president wanted in connection with one of the biggest corruption scandals in Latin America was arrested in the United States on Tuesday, according to Peruvian and American officials.

Alejandro Toledo, who led the country in the early 2000s, is wanted in Peru on accusations he received $20 million as part of a bribery scandal that has engulfed the region — and landed many of the country’s former presidents in jail.

The charges are related to Odebrecht, a Brazilian construction giant that admitted in 2016 to paying $800 million in bribes to secure large infrastructure contracts throughout the region. The scandal has been particularly explosive in Peru: One president resigned as a result, while an ex-president committed suicide this year as the police were coming to arrest him on corruption charges.

The United States Marshals Service arrested Mr. Toledo, and he appeared before a federal judge in Northern California, according to a statement from the Justice Department. The American officials had said they were acting on a Peruvian extradition request.