Vijay Verma (Amitabh Bachchan) and Ravi Kapoor (Shatrughan Sinha) are best friends who do not question each other about their careers. Vijay is a police officer and Ravi is a lawyer. While Vijay catches criminals with the help of an informant named Tony (Pran), Ravi bails those criminals out and is employed by the villainous Daaga (Prem Chopra). One day, both Vijay and Ravi meet Sheetal (Zeenat Aman) at different places and times, and both fall in love with her. While Vijay’s love is more vocal and is reciprocated by Sheetal, Ravi has a one-sided crush on Sheetal, who only sees him as a friend.
Ravi admits his love for Sheetal to Vijay, who is devastated but decides to sacrifice his love for Ravi's sake. He writes a letter to Sheetal saying that they have to give up their relationship for Ravi; the letter accidentally reaches Ravi first, but he does not read it. Daaga finds out about Vijay and Sheetal's relationship through a photograph, and decides to cause trouble in Vijay and Ravi's friendship by revealing Vijay and Sheetal's relationship to Ravi. Vijay and Ravi become rivals for the first time, and Ravi takes Daaga's side in return for making Vijay's life hell. One day, Tony tells Vijay his story: he was in charge of the checkpoints that check trucks. He was threatened by an unknown criminal (apparently Daaga) to let a certain truck through without checking, but he refuses and tips the police off to the truck. In retaliation, Daaga sends a truck to run over him and his family, killing his wife and disabling his son Johnny. Later, Daaga frames Vijay for killing a criminal he was interrogating for info on Daaga. Ravi defends him on the condition that Sheetal sleeps with him for one night. On the night, he finds and reads the letter that Vijay wrote to Sheetal and repents and rekindles his friendship with Vijay.
Just then, Daaga captures them. Vijay comes to the rescue, but is also captured. Daaga's moll Sylvia (Helen), who is really a spy, and Tony's wife's sister, that gives Tony his info, saves them. Daaga fatally shoots Tony, who dies in Vijay's arms with the final wish that Vijay takes care of Johnny, and escapes with Balwant Singh in a plane, but is forced to land by Ravi and Vijay, who are using a jeep and helicopter. Balwant Singh gets shot by Daaga because he couldn't run due to ankle sprain while jumping off the charter plane. Daaga attempts to escape , but is caught by Vijay. He tries to shoot Vijay with a pocket gun and get shot dead in return by Vijay instead.
In a scene from the film, Amitabh Bachchan beats Sajjan in the prison, who is later killed by another prisoner. This scene was lifted by Raj Khosla from his previous directorial C.I.D. (1956), where the same circumstances were faced by Dev Anand.
In India, the film grossed ₹75 million, with net earnings of ₹45 million.[3] It was declared a 'super hit' at the box office, becoming the fourth-highest grossing Indian film of 1980.