The Liberals defeated the Conservative army on the battlefield, but Conservatives sought another solution to gain power via foreign intervention by the French. Mexican conservatives asked Emperor Napoleon III to place a European monarch as head of state in Mexico. The French Army defeated the Mexican Army and placed Maximilian Hapsburg on the newly established throne of Mexico, supported by Mexican Conservatives and propped up by the French Army. The Liberal republic under Benito Juárez was basically a government in internal exile, but with the end of the Civil War in the U.S. in April 1865, that government began aiding the Mexican Republic. Two years later, the French Army withdrew its support, Maximilian remained in Mexico rather than return to Europe. Republican forces captured him and he was executed in Querétaro, along with two Conservative Mexican generals.  The "Restored Republic" saw the return of Juárez, who was "the personification of the embattled republic," as president.