In early 2015, Prabhu Solomon approached Dhanush to play the lead role in his next film and by February 2015, the director had started pre-production work with a recce in North India. Keerthy Suresh was signed to play the leading female role. The film's shoot took place predominantly on a train, the Duronto Express, and the film features the lead pair travelling from Delhi to Chennai. Hence, initially, a grand train set was put up at Binny Mills, Chennai during July 2015 for the film's initial schedule. Production continued for sixty days straight, with the makers alternating between shooting the film in sets and on a live train. Shoot progressed through the middle of 2015, with scenes also filmed in Goa and Hyderabad. In October 2015, a schedule was shot in Orissa, after which production was completed for scenes featuring Dhanush. Prabhu Solomon continued to shoot further scenes featuring parallel stories throughout late 2015 and early 2016, with Ganesh Venkatraman filming scenes during January 2016.
The soundtrack of the film is composed by D. Imman. The last time he scored music for a film starring Dhanush was in 2006 for Thiruvilaiyaadal Aarambam and this is the sixth time Prabhu Solomon is collaborating with Imman. All the songs are written by Yugabharathi.