Manjule conceived the story in 2009, basing it on his experiences of caste discrimination, but scrapped it when he decided that it was boring. After making Fandry (2013), he revisited the story and completed its script the following year. The screenplay was written by Manjule, and his brother Bharat penned the dialogues.