After the death of Ahmed Shah, his son Mehmood Begda become the king at a very tender age. Mehmood Begda was a very powerful and brave king. He won many forts and palaces because of which he was known as Begda.
At that time Muhammad Lodhi was the king of Delhi. Once a person came to his court and narrated him about Mandavgad village sufferings. With a boundary of 70 Kms and surrounded by 12 small villages, it comes under the Dhar district of Madhya Pradesh. He narrated him about the king of that region. He described that region king as a tyrant, rude and cruel. That man also informed them that the king has built a gigantic idol at the center of the village and is habitual of enslaving and killing people for appeasing that idol from the enslaved' bloodshed. That man further informed them that the king also performs black magic, Tantrik Vidya, witchcraft, and evil spirits with the belief that these activities could make him immortal.
That person asked help from Muhammad Lodhi for saving thousands of people from that tyrant king's clutches. Muhammad Lodhi said that Muhammad Begda is a very brave king of Ahmedabad and he can surely win Mandavgad and free all the people from his clutches. So, Muhammad Lodhi sent a message to Mehmood Begda to help the people of Mandavgad and attack on Mandavgad.
When the complaint reached king Mehmood Begda, he was very angry and decided to attack as soon as possible. He sent a message to Unava for Dost Muhammad (Father of Hazrat Saiyed Ali Mira Datar) and asked him to come to Ahmedabad with 250 horse riding soldiers.
Twelve thousand soldiers got ready to attack Mandavgad. The battle continued for several years but Mehmood Begda could not win over the fort. He attacked several times but in vain. Seeing this state, Mehmood Begda was very upset. He cried in front of ALLAH Subhana Taala and asked for His help and mercy. Thereafter, somebody in his army said that there is a person named Saiyed Ilmuddin and his Grandson is Saiyed Ali. Only Saiyed Ali can win this fort for the king.
Their in Unava, marriage preparation for Hazrat Saiyed Ali Mira Datar (who was just eighteen years of age) were going on. As call for the war came to his family, his family didn't inform him. But somehow he came to know that he was called upon by his grandfather.
He responded on the call of his Grandfather Ilmuddin. He asked permission from his brother and mother to join his Grandfather in the battlefield. Initially, his mother hesitated to permit him as she knew the result. But somehow Hazrat Saiyed Ali Mira Datar convinced her saying I am Saiyed, Descendents of the Prophet Muhammad (Sallallahu Alaihi Wasallam) Aal-e-Rasool so you please heartedly allow me to join the battle as it is wish of ALLAH Subhana Taala, I will Inshallh win this battle. Eventually, permission was given.
Hazrat Saiyed Ali Mira Datar started to proceed toward the battlefield on the wish of ALLAH Subhana Taala. As he reached the Pond of Unava he took Miswak and buried that Miswak near the pond.
Some people standing nearby saw this and asked Hazrat Saiyed Ali Mira Datar why he did so. He replied to them that if he is martyred in this Battle of Mandavgad it is this place where his body should be buried.
People further asked him that how will they come to know that he has been martyred. Hazrat Saiyed Ali Mira Datar very humbly answered them that "the day when I will be martyred this small Miswaak will become a big Miswaak Tree. After that Hazrat Saiyed Ali Mira Datar made Wazu and pray to ALLAH Subhana Taala, after that he thought in his heart if I received Shahadat (to die in the way of ALLAH Subhana Taala) I should be buried here only.
As he reached there, he visited his grandfather. It was night time and there was a strong storm (aandhi). Furious wind blowed everything, all the tents of army were carried away except one in which Hazrat Saiyed Ali Mira Datar was reading Quran with his Grandfather Ilmuddin. Seeing this miracle, Mehmud Begda was convinced that Saiyed Ali has reached Mandavgad and he is a surely a Wali (Friend of ALLAH).
Along with only 125 soldiers, he started his attack. There was a river on the way which miraculously gave him the way. They all reached Mandavgad near Kokada Koh and observed the fort of Mandavgad. It was 18 feet high, Hazrat Saiyed Ali Mira Datar prayed to ALLAH and his horse jumped that height to reach inside the fort, the footprints of the horse are still available today. Once he got inside, he made a tunnel from inside the fort to help his army enter the fort.
On seeing the face of Hazrat Saiyed Ali Mira Datar many soldiers of the king were terrified and they ran away to King complaining that they are unable to fight Hazrat Saiyed Ali Mira Datar. King got very furious on hearing this and he ordered to call all the magicians and the tantriks of his kingdom to join the war & attacking all at the same time. They tried their best but could not face Hazrat Saiyed Ali Mira Datar. There was a furious and intense war, everywhere was blood but nothing could stop Hazrat Saiyed Ali Mira Datar.