Question: When did the president of the Confederacy end his fight in the Mexican-American war?

Knowledge 1: President of the Confederate States of America
President of the Confederate States of America Seal of the Confederate States Jefferson Davis Style His Excellency Residence Executive Mansion, Montgomery, Alabama (1861) Executive Mansion, Richmond, Virginia (1861 -- 1865) Seat Alabama State Capitol, Montgomery, Alabama (1861) President's Office, Custom House, Richmond, Virginia (1861 -- 1865) Sutherlin House, Danville, Virginia (1865) Appointer Congress (provisional) Electoral College (permanent) Term length One year (provisional) Six years (permanent) Formation February 18, 1861 (provisional) February 22, 1862 (permanent) First holder Jefferson Davis Final holder Jefferson Davis Abolished May 10, 1865 Deputy Vice-President of the Confederate States Salary CS $25,000 per annum [SEP] Knowledge 2: Chihuahua (state)
The United States Congress declared war on Mexico on May 13, 1846 after only having a few hours to debate. Although President José Mariano Paredes's issuance of a manifesto on May 23 is sometimes considered the declaration of war, Mexico officially declared war by Congress on July 7. After the American invasion of New Mexico, Chihuahua sent 12,000 men led by Colonel Vidal to the border to stop the American military advance into the state. The Mexican forces being impatient to confront the American forces passed beyond El Paso del Norte about 20 miles (32 km) north along the Rio Grande. The first battle that Chihuahua fought was the battle of El Bracito; the Mexican forces consisting of 500 cavalry and 70 infantry confronted a force of 1,100–1,200 Americans on December 25, 1846. The battle ended badly by the Mexican forces that were then forced to retreat back into the state of Chihuahua. By December 27, 1846, the American forces occupied El Paso Del Norte. General Doniphan maintained camp in El Paso Del Norte awaiting supplies and artillery which he received in February 1847.
Knowledge 1: President of the Confederate States of America
President of the Confederate States of America Seal of the Confederate States Jefferson Davis Style His Excellency Residence Executive Mansion, Montgomery, Alabama (1861) Executive Mansion, Richmond, Virginia (1861 -- 1865) Seat Alabama State Capitol, Montgomery, Alabama (1861) President's Office, Custom House, Richmond, Virginia (1861 -- 1865) Sutherlin House, Danville, Virginia (1865) Appointer Congress (provisional) Electoral College (permanent) Term length One year (provisional) Six years (permanent) Formation February 18, 1861 (provisional) February 22, 1862 (permanent) First holder Jefferson Davis Final holder Jefferson Davis Abolished May 10, 1865 Deputy Vice-President of the Confederate States Salary CS $25,000 per annum [SEP] Knowledge 2: Chihuahua (state)
The Treaty of Guadalupe Hidalgo, signed on February 2, 1848, by American diplomat Nicholas Trist and Mexican plenipotentiary representatives Luis G. Cuevas, Bernardo Couto, and Miguel Atristain, ended the war, gave the U.S. undisputed control of Texas, and established the U.S.–Mexican border of the Rio Grande. As news of peace negotiations reached the state, new call to arms began to flare among the people of the state. But as the Mexican officials in Chihuahua heard that General Price was heading back to Mexico with a large force comprising several companies of infantry and three companies of cavalry and one division of light artillery from Santa Fe on February 8, 1848, Ángel Trías sent a message to Sacramento Pass to ask for succession of the area as they understood the war had concluded. General Price, misunderstanding this as a deception by the Mexican forces, continued to advance towards the state capital. On March 16, 1848 Price began negotiations with Ángel Trías, but the Mexican leader responded with an ultimatum to General Price. The American forces engaged with the Mexican forces near Santa Cruz de los Rosales on March 16, 1848. The Battle of Santa Cruz de los Rosales was the last battle of the Mexican–American War and it occurred after the peace treaty was signed. The American forces maintained control over the state capital for three months after the confirmation of the peace treaty. The American presence served to delay the possible succession of the state which had been discussed at the end of 1847, and the state remained under United States occupation until May 22, 1848.
Knowledge 1: Jefferson Davis
Davis was born in Fairview, Kentucky, to a moderately prosperous farmer, the youngest of ten children. He grew up in Wilkinson County, Mississippi, and also lived in Louisiana. His eldest brother Joseph Emory Davis secured the younger Davis's appointment to the United States Military Academy. After graduating, Jefferson Davis served six years as a lieutenant in the United States Army. He fought in the Mexican–American War (1846–1848), as the colonel of a volunteer regiment. Before the American Civil War, he operated a large cotton plantation in Mississippi, which his brother Joseph gave him, and owned as many as 113 slaves. Although Davis argued against secession in 1858, he believed that states had an unquestionable right to leave the Union. [SEP] Knowledge 2: Confederate States Army
The Confederate States Army (C.S.A.) was the military land force of the Confederate States of America (Confederacy) during the American Civil War (1861 - 1865). On February 28, 1861, the Provisional Confederate Congress established a provisional volunteer army and gave control over military operations and authority for mustering state forces and volunteers to the newly chosen Confederate president, Jefferson Davis (1808 - 1889). Davis was a graduate of the U.S. Military Academy on the Hudson River at West Point, New York, and colonel of a volunteer regiment during the Mexican -- American War (1846 - 1848). He had also been a United States Senator from Mississippi and U.S. Secretary of War in the administration of 14th President Franklin Pierce (1853 - 1857). On March 1, 1861, Davis assumed control of the military situation at Charleston, South Carolina on behalf of the Confederate States government, where South Carolina state militia threatened to seize Fort Sumter, an island fortification in Charleston harbor from the small U.S. Army garrison. By March 1861, the Provisional Confederate Congress expanded the provisional forces and established a more permanent Confederate States Army.

Answer: 1848