There had been an Indian settlement there before the Spanish , but the modern city was founded as Leal Villa de Santiago de Managua in 1811 . Founded in 1819 , the city was given the name : Leal Villa de Santiago de Managua .