Despite the Mughal army's vast numerical superiority, the empire's treasury, and the support of allies like the Siddhis, the Portuguese, the Golkonda and the Bijapur sultanates, the war ended in 1707 with a victory for the Marathas.