The movie revolves around a small village named Solaiyur and a dam that acts as its lifeline. The MP of the village, Nagabooshan (Jagapati Babu) has plans to destabilize the dam for his own selfish motives. A Government official who tested the dam’s strength certifies that it has a very long life. Nagabhushanam kills the official who before dying, warns the village head to reopen the Temple to save the dam. Thus he decides to reopen the Temple which should be done by the legal heir of the dam’s engineer Raja Lingeswaran (Rajnikanth). Nagabooshan accepts it to protect his goodwill in the constituency and his wish to marry the village head’s granddaughter Lakshmi (Anushka) who works as a reporter in Public TV.
After a long search, Lakshmi finds out Lingeswaran’s legal heir Lingaa (Rajnikanth), a petty thief who steals small jewellery along with his companions for a living. He also harbours a lot of resentment towards Lingeswaran because he left his successors penniless. One day, he decides to steal an emerald necklace on display at a star hotel along with his gang and he makes Lakshmi his unwilling accomplice. He does steal the necklace, but by the time he goes to the Merchant to get his share, the police come and arrest the Merchant. Thus, Lingaa is forced to run away from the city to escape the police hunting for him. Lakshmi comes into his life once again and convinces him to accompany her to Solaiyur.
There, Lingaa and his friends come to know from the village head that the Sivalingam is made of Marakathamani. Since it is a very costly one, Lingaa and his friends enter the Temple, open it and clean the premises, where Lingaa picks up the pen drive. Just when the village head along with Nagabooshan visit the Temple, Lingaa and his friends start worshiping the deity grandly and the village starts worshiping. That day was Mahasivaratri, the day when Lingeswaran was about to inaugurate this Temple. The village head then narrates the story of Lingeswaran to all including Lingaa and Lakshmi. Lingeswaran is the Maharaja of Kodiyur who on his father’s request becomes a collector in the British Government during 1939 and also an civil engineer from Cambridge University which was his passion. He is posted to Solaiyur where he observes the water problems before coming to a conclusion that a dam must be built here. Also a village girl named Bharathi (Sonakshi Sinha) along with a local man Subbaiah assist him in gathering the information about the nearby villages.
He asks permission from British Government but the collector of Kochi has plans to place a railway track there. After a heated argument, Lingeswaran resigns from his post and decides to build the dam on his own. He obtains permission from the Governor and as a counterattack, the collector is transferred to Solaiyur. With the help of villagers, Lingeswaran succeeds in building the dam. Floods are coming and to save the dam, supporting equipment is necessary which Lingeswaran demands. He also asks the collector to pass the orders to give the lands occupied by the farmers by the British Government. The collector uses this as an advantage while his wife looks on. The collector asks Lingeswaran to pay 100 times the value and also to credit British Government as the one behind the dam’s construction. He also puts a condition not to reveal anything to the villagers about this meeting. The next day, when Lingeswaran is paying the amount in the form of Gold, Silver and documents, he receives necessary cash, supporting equipment and documents along with an order restoring the lands to the villagers.