The former One Direction singer made this video with presenter Corden on the Gavin and Stacey star's Saturday Night Show segment. This part of the show sees the pair knock on various doors of houses across New York, trying to find a place to shoot a video.
After a while, Styles and Corden knocked on the door of a group of shocked flatmates, one of which was a huge fan of Styles.
Welcoming the pair into their home, they dug out props, decorations and costumes to help them make a music video for a new track called 'Daylight'. The four housemates also featured in the video themselves.
Check it out below.