Anil and Sunil are identical twin brothers. They have a friend named Meena who likes Sunil. As a child, Sunil gets separated from his family. None of the trio remembers the incident. Sunil is found by a man named Sahay, who renames him Vishnu.
Vishnu Sahay (Dilip Kumar) grows up to become a reputed Judge. He has everything, money, fame, happiness and a seemingly devoted wife Mala (Bindu). However, he is blissfully unaware that Mala and his best friend Rajen (Prem Chopra) are having an affair behind his back. Meanwhile Anil ( also Dilip Kumar) has grown into a Don Juan. He is involved with a dancer and also flirts with Meena (Sharmila Tagore), who, however, wants nothing to do with him.
One day, Anil accidentally kills a man and runs to Mussoorie to hide from the cops. Judge Vishnu Sahay comes to the same hotel as Anil. When Anil sees Vishnu, he observes that they look alike. If Vishnu's facial hair and spectacles are removed, even the police will have a hard time distinguishing between him and Anil. Vishnu does not realize this. Anil spikes Vishnu's coffee and knocks him out. After removing Vishnu's facial hair and glasses, he checks out of the hotel as Vishnu. However, his plan turns out to be disastrous as Vishnu's car suffers an accident, killing Anil on the spot.
From the look of things, the police assume that Vishnu has died. Meanwhile, the real Vishnu is taken into custody as Anil after he gets up. He is, however, proved innocent in court. He sets out for home, expecting to surprise his wife. However, he is shocked to see that his wife and friend are celebrating his death. He learns of their adultery and leaves, distraught and dejected. Mala and Rajen are unaware of his return.
Vishnu comes back to Anil's house. Meena recognizes that he is in fact Sunil, but he cannot remember anything. She is perplexed as to why he is not responding to her. Vishnu re-enters the lives of his wife and her lover as Anil, and befriends them. One day, he invites them to see a play staged by himself. As they watch the play, they realize in horror that it is their own story. After realizing that Anil is Vishnu, Rajen attacks him. However, Vishnu has already placed some policemen on the spot and they promptly arrest Rajen for attempt to murder. Vishnu runs to his home, knowing that Mala would have gone there.
He finds her sitting calmly in a chair. He asks her to choose between death and the ignominy of living the rest of her life as an unfaithful wife. She says that she has already made a choice and shows an empty poison bottle in her hand. She dies in front of Vishnu. Just then, a sad Meena comes from behind him and places a hand on his shoulder, indicating that she knows everything now.