Abul Hasan Qutb Shah was the seventh and last ruler of the kingdom of Golconda in southern India under the Qutb Shahi dynasty. He ruled from 1672 to 1687. He was known as Tana Shah, meaning "benevolent ruler". He was very friendly with the Hindus and appointed Akkanna and Madanna as his ministers.
In 1577 Shivaji visited Golconda and formed friendship with Abul Hasan Qutb Shah. His ministers organized to resist the Mughals in the Deccan. In 1685, Aurangzeb attacked Bijapur and conquered it. The next year he besieged the Golconda fort. The sultan agreed to come to terms. But Aurangzeb wanted to ruin the entire kingdom. Abul Hasan Qutb Shah defended the court heroically, but in the end the Mughals captured the city by deceit. The sultan was taken prisoner and sent to Daulatabad in 1687.