The Pirates have agreed to a two-year, $14 million deal with Francisco Liriano, according to The Star Tribune.

The left-hander is joining his third team in five months after spending more than five years with the Twins.