The war with Tikal continued under the new king and in AD 705 Tikal was again defeated and its lord captured. This victory was overseen by Itzamnaaj K'aawiil's general Ucha'an K'in B'alam, who would later become king himself. After this victory Dos Pilas benefitted from tribute in the form of labour and wealth, resulting in the rapid expansion of the city. At this time Itzamnaaj K'awiil ordered the building of the El Duende group centred on a sizeable temple on a hilltop east of the Main Group. Victories over unknown, presumably minor, enemies are recorded to have taken place in AD 717 and 721. Itzamnaaj K'awiil raised five stelae in the El Duende group to celebrate his military victories. Itzamnaaj K'awiil's died in 726 and was buried four days later, as recorded on Stela 8. A royal tomb excavated under Structure 5-1 is probably that of this ruler.