The singer is replacing Shia LaBeouf after he had to leave the psychological thriller due to scheduling conflicts.
Styles will star opposite Florence Pugh, Chris Pine, Dakota Johnson and director Wilde.
We need your consent to load this Instagram contentWe use Instagram to manage extra content that can set cookies on your device and collect data about your activity. Please review their details and accept them to load the content.Manage Preferences
In a message on Instagram about Styles and Pugh's casting and characters, Wilde wrote: "Jack and Alice. Very proud to work with these fine folks. #DontWorryDarling."
The Hollywood Reporter says that Don't Worry, Darling is set in a California community in the 1950s and sees a woman questioning "her seemingly perfect life" after uncovering "a disturbing truth".