“Captain America: Civil War” actor Sebastian Stan has joined the cast of the Tonya Harding biopic “I, Tonya” starring Margot Robbie as the figure skater.

Miramax recently landed the rights to distribute the film. Craig Gillespie is directing. Robbie, who broke out in “Suicide Squad” this summer, will also produce along with Tom Ackerley through their Lucky Chap production company with Bryan Unkeless and Steven Rogers, who also wrote the screenplay.

Len Blavatnik and Aviv Giladi will executive produce for AI Film, which is financing the project. AI came on to the project in October.

Stan will play Jeff Gillooly, the estranged husband of Harding, who helped plot the attack on rival figure skater Nancy Kerrigan. Gillooly later revealed he and Harding’s bodyguard Shawn Eckhardt hired Shane Stant to break Kerrigan’s leg so she couldn’t compete in the upcoming 1994 Winter Olympics in Lillehammer.

Besides reprising his role as the Winter Soldier in “Captain America: Civil War,” Stan also has the Steven Soderbergh heist movie “Logan Lucky” coming out next year.

Stan is repped by ICM Partners and Brookside Artist Management. Deadline Hollywood first reported the news.