The Houston Astros acquired infielder Aledmys Diaz in a trade with the Toronto Blue Jays, giving up minor league pitcher Trent Thornton on Saturday.

Diaz played both at shortstop and third base for the Blue Jays last season, hitting .263 with a career-high 18 home runs, 26 doubles and 55 RBIs in 130 games. His production improved after the All-Star break, with a .290 batting average and OPS of .856 in the second half.