The 29-year-old Nicasio with 1-3 with a 3.86 ERA and one save for the Dodgers this year in 52 relief appearances and one start, striking out 65 in 58 1/3 innings. He held right-handed hitters to a .226 batting average (35 for 155).
Nicasio is 22-25 with a 4.88 ERA and one save in five big league seasons with Colorado (2011-14) and the Dodgers (2015). He has made 70 starts and 71 relief appearances.
''Juan Nicasio is an experienced pitcher with the pitch repertoire and versatility to fill a variety of roles on our pitching staff,'' Pirates general manager Neal Huntington said Thursday. ''He had a strong season pitching primarily as a relief pitcher last year and we look forward to Juan's impact on our major league club.''