“Transformers” actress Nicola Peltz has landed one of the female leads opposite Christian Bale in 20th Century Fox’s “The Deep Blue Good-By.”

Rosamund Pike and Peter Dinklage are co-starring in the Travis McGee film, which James Mangold is directing.

Chernin Entertainment will exec produce with Leonardo DiCapprio and Jennifer Davisson-Killoran through Appian Way. Amy Robinson is co-producing.

Peltz beat out several actresses for the role of a teenage girl in need of McGee’s help when her father goes missing in the film, which is based on John MacDonald’s detective novels.

“The Deep Blue Good-By” marks the young actor’s first major role since breaking out last summer in Paramount’s “Transformers: Age of Extinction.” Peltz also landed in Universal’s coming of age pic “Lowriders.” She is repped by WME and Management 360.