The role of Vijay was originally written for Dharmendra (I), and the role of Renu was originally written for Hema Malini, but due a dispute with Ramesh Sippy both walked out of the film. Amitabh Bachchan, who was originally doing the role of Ravi, took the role of Vijay and 'Shashi Kapoor' agreed to play Ravi.