Hanif, a member of the terrorist organisation Tehreer Al-Hind, arrives in Mumbai with his team to execute 24 bomb blasts, each by a terrorist. On the day of the attack, he is injured in a road accident and taken to the hospital. Upon realizing that a time bomb is attached to his body, the hospital staff notify SS Dewan, a member of the Anti-Terrorism Squad. The doctors find it impossible to remove the bomb from Hanif's body as it is connected directly to his heart.
Hanif regains consciousness but has developed retrograde amnesia following the accident. However, Dewan refuses to trust him and believes he is lying. Meanwhile, Husna and Rohit, Dewan's subordinates, arrest another terrorist named Farukh. Aruna Gupta, Dewan's superior, orders him to kill Hanif as the information they need can be obtained from Farukh. Dewan, acommpanied by a squad, takes Hanif to an isolated place to kill him in an encounter.
Husna, who has recovered the bomb's blueprint from Hanif's house, realizes that Hanif's death will trigger the explosion of the other 24 bombs. When Hanif is about to be killed, a gang of terrorists attack the officers. The former escape following a car chase and take Hanif to a secret basement. Hanif meets Maqsood, his leader, who tells him that he his parents were murdered in communal riots. Dewan and his squad capture Hanif again and kills all other terrorists including Maqsood. Hanif escapes.
It is revealed that Husna was the mole in Dewan's squad who helped Hanif escape. Hanif and Husna are revealed to be siblings whose parents were murdered by Maqsood years ago in a communal riot. Hanif removes his chest bomb and throws into a compartment on a train that housed all the suicide bombers, killing them. Hanif reveals to Dewan via phone that he had no memory loss and behaved so to use Dewan and kill Maqsood, who had killed his parents and turned him into a terrorist. Hanif hangs up and destroys the phone, and Dewan promises to catch Hanif and Husna for their betrayal.
The film ends with the song 'Ali Ali' featuring Karan Kapadia and Akshay Kumar in a guest appearance.