Guerrier is 25-33 with six saves and a 3.54 ERA over 10 seasons in the major leagues. He went 2-3 with a 4.80 ERA this season before being designated for assignment on Sunday.
The Cubs designated Marmol for assignment last week. Marmol was 2-4 with two saves and a 5.86 ERA in 31 appearances this season, striking out 32 while walking 21 batters.
An All-Star as a setup man in 2008, Marmol's best year as closer was 2010, when he had 38 saves in 43 chances along with 138 strikeouts and 52 walks.
The Dodgers also acquired an international signing bonus slot in the deal.