During a Buzkashi competition with a neighboring tribe in Afghanistan, Badshah Khan (Amitabh Bachchan) falls in love with Benazir (Sridevi) and wants to marry her. Benazir agrees to marry him on the condition that he must bring her the head of Habib Ullah who killed her father. Badshah Khan goes to India to search for Habibullah. He finds Habibullah in a prison and breaks him out to take him back. He has the jailer Ranveer Singh (Vikram Gokhale) on his trail. In the end he chops off Habibulla's head. He told Ranveer that he would be back in one month to receive punishment (from the Law) for taking Habibulla. Badshah goes back to Afghanistan and marries Benazir; after the time limit he comes back to India and surrenders himself to Rajput Khan and is jailed for five years. While he is away he leaves his childhood friend Khuda Baksh (Danny Denzongpa) to take care of his wife.
To avenge Habibulla's death, his brother Pasha (Kiran Kumar) kidnaps the daughter of jailer Ranveer in return for Badshah. Badshah finds out about this and escapes from jail; he confronts Pasha, only to have Inspector Aziz Mirza (Bharat Kapoor) kill Ranveer Singh. With Ranveer Singh's daughter as a pawn in Pasha's hands, Badshah admits to killing Ranveer Singh and is sentenced to 15 years. When Aziz's wife (who thinks of Badshah as her brother) visits him, she ends up killing her husband to protect Badshah, but Badshah takes the blame for that murder as well since he believes that her son Raja needs her.
At that time, Benazir sends Khuda Baksh to check on Badshah. Due to his very long stay in prison, Badshah makes Khuda Baksh promise to take care of his daughter Mehndi and tell his wife Benazir that he is now dead, so that she can move on rather than wait for him. Benazir goes mad when she hears the news that her husband is dead.
On coming out of prison, Badshah meets with his now grown daughter, Mehndi (also Sridevi), who has found out the truth finally and has come to India to look for her father; the daughter of Ranveer Singh, Hina (Shilpa Shirodkar) who is also in the police force and knows all about Badshah's past and respects him as her uncle; and the son of Inspector Aziz Mirza, Inspector Raja Mirza (Nagarjuna), who has found out that it was Badshah who had killed his father and is out for vengeance. In a twist of fate, Raja is in love with Mehndi, even though he wants to kill her father.
In this are added old enemies and rivalries when Pasha, now a major drug lord, becomes involved. Benazir and Khuda Baksh are kidnapped by him. The truth is revealed to Raja about his father, and all of them join together to beat their mutual enemy.