<prompt> Translate the following text to EnglishPia, katika vita vya Magenta na Solferino, Piedmont ilishinda Austria na kupata Lombardy.  <response>: With their French allies, Piedmont defeated Austria at Magenta and Solferino to secure Lombardy in 1859. 