The city of Loja was founded by Field Marshal Alonso de Mercadillo in 1548, and it is named for his hometown of Loja in Spain.
The city of Loja has the distinction of being the first city in Ecuador to be wired for electric power provided by a hydroelectric dam that was completed in the 1890s.