At the turn of the first millennium, the Hoysalas gained power in the region. Literature flourished during this time, which led to the emergence of distinctive Kannada literary metres, and the construction of temples and sculptures adhering to the Vesara style of architecture. The expansion of the Hoysala Empire brought minor parts of modern Andhra Pradesh and Tamil Nadu under its rule. In the early 14th century, Harihara and Bukka Raya established the Vijayanagara empire with its capital, "Hosapattana" (later named Vijayanagara), on the banks of the Tungabhadra River in the modern Bellary district. The empire rose as a bulwark against Muslim advances into South India, which it completely controlled for over two centuries.