During a Buzkashi competition with a neighbouring tribe in Afghanistan, Badshah Khan (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 Habibullah, who killed her father. Badshah Khan goes to India to search for Habibullah. He finds Habibullah in prison and breaks him out to take him back. He has the jailor Ranveer Sikhri (Gokhale) on his trail. He chops off Habibullah's head. When confronted by Ranveer, he tells him that he would be back in a month to receive punishment for taking Habibullah. Badshah goes back to Afghanistan and marries Benazir; after the time limit, he comes back to India and surrenders himself to Ranveer, whom he addresses as "Rajput Khan" and is jailed for five years. While Badshah Khan is away, his childhood friend Khuda Baksh assumes the role of a guardian for Benazir.
To avenge Habibullah's death, his brother Pasha kidnaps Heena, the daughter of jailor Ranveer, ransoming her in return for Badshah. Badshah finds out about this and escapes from jail; he confronts Pasha, only to have Inspector Aziz Mirza 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, Salma, who thinks of Badshah as her brother, visits Badshah and ends up killing her husband to protect Badshah, 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 extended 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, who has found out that her father is still alive and has come to India to look for him; the daughter of Ranveer Singh, Heena, 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, 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.
Pasha, now a major crime lord, gets involved. Benazir and Khuda Baksh are kidnapped by him. The truth is eventually revealed to Raja about his father, and he joins hands with Badshah and Heena to kill their mutual enemy. Badshah and Benazir grab one arm each of Pasha as they ride on separate horses, like the beginning of the film, and throw him into a huge rock, killing him. They ride off into the sunset, finally together.