Comayagua remained the capital of Honduras throughout all the colonial period. By the time the Spanish authorities gifted the city with different architectural works, such as churches, colleges, convents, houses, and Fountains. Comayagua's system of cisterns and fountains dates from colonial times making it the first city in Honduras with a system of aqueducts. However Tegucigalpa began to dispute that position in the mid-17th century, as it developed as a mining center. In recognition of its growing importance it received the title of town in 1768.