The British attacked the Amarvedu dynasty at the time of Bobbili war in South India. Just before the attack two friends, Daanaala Dharmayya and Pagadaala Subbayya hide some treasure in a cave which has five doors. The movie revolves around the treasure and the people who try to lay their hands on it.