Nanchenkotta, a fictional border town on the Kerala-Tamil Nadu frontier, is ruled by Amarnath, Shivajith Padmanabhan, the stern head of the DYP. He wields fear and intimidation to keep people in line, threatening and torturing anyone who resists. Because of his grip, many residents relocate to nearby areas, seeking safety elsewhere. The town is saturated with Amarnath's goons, and the DYP runs shady businesses, including gun manufacturing. The party’s inner circle includes Amarnath's brother Appu and their cousin Dr. Sangeetha, Samyuktha.
Against this backdrop, Adv. Lakshmanan leads a rival party that tries to break through Amarnath's influence during elections, but his efforts falter. Lakshmanan delivers a speech urging locals to vote against DYP, yet he is killed by Amarnath's henchman Ummar.
Despite the presence of a police station, the law remains in Amarnath's pocket, leaving the local force unable to act. SI Vyshakan, the station’s in‑charge, commits suicide after his daughter criticises him for failing to act in Lakshmanan's case. The rival party’s new leadership begins making autonomous decisions, planning to select a candidate to challenge Appu, but their changes are not well received. Sooraj, Sooraj, Saiju Kurup a senior party member, and several colleagues decide to leave the party to work for the people. The new leadership hires a goon to finish Amarnath, but that plan backfires when the goon is killed by Amarnath.
Into this volatile situation arrives an SI known only as K. He burns a goon alive who had taken over the police station and then rallies the other cops, using unconventional methods to clear Amarnath's men. K visits the illegal gun manufacturing site run by Appu and threatens to shut it down. Ummar arrives at the station to threaten K, but K orders Ummar not to work under Amarnath. On Amarnath's orders, Ummar tries to force K out of town or kill him, but to no avail. In a brutal exchange, Ummar attacks two policemen, leaving one with a severely injured leg.
K tracks down Ummar in a factory, thrashes him and his allies, and, in a shocking turn, chops off Ummar's legs with a chainsaw. Sooraj meets K and pleads for help to convince the people to return to Nanchenkotta. K begins working for the people against DYP, angering Amarnath. Amarnath's goons kill a policeman and stab K, but K manages to beat them back. In a devastating move, Amarnath finishes Sooraj, shattering the locals' confidence. K kidnaps Appu and delivers a brutal beating that leaves him in a coma; Amarnath is forced to kill Appu to end his suffering and swears vengeance on K.
Dr. Sangeetha refuses to become the next candidate and heads to Hyderabad after a cop threatens her. Amarnath calls on K for a final confrontation. In the climactic battle, K defeats Amarnath and drags his body through the streets, ordering the crowd to stand still until prison authorities arrive. The people who had left Nanchenkotta return, walking over Amarnath’s unconscious form as a sign of restored peace. K quietly leaves Nanchenkotta and moves to an unspecified place in Tamil Nadu to continue restoring order elsewhere.