Villar agreed to a one-year, $8.2 million deal with the Marlins, avoiding arbitration, Jon Heyman of MLB Network reports.
President of baseball operations Michael Hill said Tuesday that Villar will work out at third base and in the outfield in addition to the middle-infield spots during spring training, Craig Mish of FNTSY Sports Radio reports.
Villar has been traded from the Orioles to the Marlins in exchange for Easton Lucas.
Villar was placed on waivers by the Orioles on Wednesday, Roch Kubatko of MASN Sports reports.
Villar went 2-for-4 with an RBI, two runs and a steal in Saturday's win over Boston.
Villar went 3-for-8 with a solo home run and an additional run and RBI in Monday's 11-10 loss to the Blue Jays in 15 innings.
Villar went 1-for-4 with two RBI, a run scored, a walk and a stolen base in the Orioles' 8-2 win over the Tigers on Sunday.
Villar went 1-for-4 with a three-run home run Wednesday against the Dodgers.
Villar went 1-for-4 with one run scored and one steal in the Orioles 6-4 loss against the Royals on Sunday.
Villar went 2-for-4 with a walk, a double, three runs scored, an RBI and three stolen bases in Friday's 14-2 rout of the Royals.