Hours after U.S. President Donald Trump signed executive orders to curb illegal immigration, Mexican President Enrique Peña Nieto promised Wednesday night to protect Mexicans in the United States.

"Where there is a Mexican migrant at risk that requires our support, your country should be there," Peña Nieto said in a brief address to his nation, which he said was a response to Trump's actions earlier in the day.

"Our communities are not alone," Peña Nieto said. "The Mexican Government will provide them with the legal advice, which guarantees the protection they require."

PHOTOS: Life along Mexico's border with the United States

20 PHOTOS Life along Mexico's border with the United States See Gallery Life along Mexico's border with the United States IMPERIAL SAND DUNES, CA - SEPTEMBER 28: A digger removes sand drifts from the Mexican side of the U.S.-Mexico border fence on September 28, 2016 in the Imperial Sand Dunes recreation center, California. Without daily removal of the sand, the dunes would cover the fence and undocumented immigrants and smugglers could simply walk over it. The border stretches almost 2,000 miles between Mexico and the United States. Border security and immigration issues have become major issues in the U.S. Presidential campaign. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: People meet loved ones through the U.S.-Mexico border fence on September 25, 2016 in Tijuana, Mexico. The U.S. Border Patrol opens the park on the American side in San Diego on weekends to meet through the fence with family and friends through the fence at Tijuana. The park is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 24: Haitian refugees look over donated items at an immigrant center on September 24, 2016 in Tijuana, Mexico. In recent months a surge of Haitian refugees has arrived to Tijuana, seeking asylum at the border crossing into the United States. The center, called the Desayunador Salesiano Padre Chava, serves breakfast to more than 1,000 immigrants daily, many of them deportees from the United States. (Photo by John Moore/Getty Images) IMPERIAL SAND DUNES, CA - SEPTEMBER 28: A digger removes sand drifts along the U.S.-Mexico border fence on September 28, 2016 in the Imperial Sand Dunes recreation center, California. Without daily removal of the sand, the dunes would cover the fence and undocumented immigrants and smugglers could simply walk over it. The border stretches almost 2,000 miles between Mexico and the United States. Border security and immigration issues have become major issues in the U.S. Presidential campaign. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: People enjoy a late afternoon near the U.S.-Mexico border fence on September 25, 2016 in Tijuana, Mexico. Friendship Park, located on the border between the two countries is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 24: Immigrants, many of them deportees from the United States, eat breakfast at a soup kitchen on September 24, 2016 in Tijuana, Mexico. The center, called the Desayunador Salesiano Padre Chava, is run by a Catholic order of priests and feeds more than than 1,000 immigrants each morning. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 24: People stand in line to cross legally into the United States from Mexico on September 24, 2016 in Tijuana, Mexico. Securing the border and controlling illegal immigration have become key issues in the U.S. Presidential campaign. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: A couple holds hands while meeting loved ones through the U.S.-Mexico border fence on September 25, 2016 in Tijuana, Mexico. The U.S. Border Patrol opens the park on the American side in San Diego on weekends to meet through the fence with family and friends through the fence at Tijuana. The park is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: People enjoy a late afternoon near the U.S.-Mexico border fence which ends in the Pacific Ocean on September 25, 2016 in Tijuana, Mexico. Friendship Park, located on the border between the two countries is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: Mexicans enjoy a late afternoon near the U.S.-Mexico border fence which ends in the Pacific Ocean on September 25, 2016 in Tijuana, Mexico. Friendship Park, located on the border between the two countries is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: A child plays in the Pacific surf near the U.S.-Mexico border fence on September 25, 2016 in Tijuana, Mexico. The nearby Friendship Park is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: Immigrant activists pray at the U.S.-Mexico border fence on September 25, 2016 in Tijuana, Mexico. The U.S. Border Patrol opens the park on the American side in San Diego on weekends to meet through the fence with family and friends through the fence at Tijuana. The park is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: Maria Rodriguez Torres, 70, embraces a grandchild after seeing her other grandchildren for the first time through the U.S.-Mexico border fence on September 25, 2016 in Tijuana, Mexico. She had traveled with family members from Mexico City to see her grandchildren through the fence at 'Friendship Park.' The U.S. Border Patrol opens the park on the American side on weekends to meet through the fence with family and friends through the fence at Tijuana. The park is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) JACAMBA HOT SPRINGS, CA - SEPTEMBER 26: Residents line up to receive free food at mobile food pantry near the U.S.-Mexico border on September 26, 2016 in Jacamba Hot Springs, California. The Feeding America truck delivers to the border town's needy residents twice a month. (Photo by John Moore/Getty Images) JACAMBA HOT SPRINGS, CA - SEPTEMBER 26: A U.S. Border Patrol vehicle stands guard along the U.S.-Mexico border fence on September 26, 2016 in Jacamba Hot Springs, California. (Photo by John Moore/Getty Images) JACAMBA HOT SPRINGS, MEXICO - SEPTEMBER 26: A cardboard cutout of Democratic presidential candidate Hillary Clinton is on display at a debate-watching party for supporters of Hillary Clinton at the Yum Yum Chinese restaurant near the U.S.-Mexico border on September 26, 2016 in Calexico, California. People across the country tuned in as Republican Presidential candidate Donald Trump and Democratic candidate Hillary Clinton participated in their first debate. (Photo by John Moore/Getty Images) HOLTVILLE, CA - SEPTEMBER 27: Mexican farm workers hoe a cabbage field on September 27, 2016 Holtville, California. Thousands of Mexican seasonal workers legally cross the border daily from Mexicali, Mexico to work the fields of Imperial Valley, California, some of the most productive farmland in the United States. (Photo by John Moore/Getty Images) HOLTVILLE, CA - SEPTEMBER 27: A A Mexican farm worker plows a U.S. farm on September 27, 2016 in Holtville, California. Thousands of Mexican seasonal workers legally cross the border daily from Mexicali, Mexico to work the fields of Imperial Valley, California, some of the most productive farmland in the United States. (Photo by John Moore/Getty Images) HOLTVILLE, CA - SEPTEMBER 27: A marker stands over an immigrant's grave on September 27, 2016 in Holtville, California. Hundreds of immigrants, many who died while crossing the desert from Mexico into the United States, are buried in a pauper's cemetery. Many of the grave markers simply read 'John Doe.' (Photo by John Moore/Getty Images) TIJUANA, MEXICO - SEPTEMBER 25: A man looks through the U.S.-Mexico border fence into the United States on September 25, 2016 in Tijuana, Mexico. Friendship Park on the border is one of the few places on the 2,000-mile border where separated families are allowed to meet. (Photo by John Moore/Getty Images) Up Next See Gallery Discover More Like This HIDE CAPTION SHOW CAPTION of SEE ALL BACK TO SLIDE

Related: Trump Signs Executive Orders Aimed at Cracking Down on Illegal Immigration

Specifically, he said, "the 50 Mexican consulates in the United States will become authentic advocates for the rights of migrants." He didn't provide details on what he said he wanted them to do.

RELATED: States where immigrants from Mexico settle

More from :

Trump to sign order stating intention to renegotiate NAFTA

Analysis: Donald Trump pledges to end 'this American carnage'

Trump threats weakened Mexico's economy: Now it's even better for U.S.