This paper proposes an ecological framework for understanding medieval mining towns as dynamic socio-ecological systems shaped by flows of matter, energy, capital and information. Drawing on concepts from human and political ecology, it examines how mining, technology and power structures interacted to produce feedback loops and tipping points that transformed both society and the environment. A case study of Kutná Hora (Czechia) illustrates these mechanisms, showing how the discovery of silver triggered cycles of population growth, technological innovation and capital accumulation, whilst also causing deforestation, pollution and social stratification. The study highlights how medieval mining towns functioned as adaptive, self-organizing systems embedded in global economic networks, revealing early forms of extractive capitalism and environmental change. This ecological perspective offers a heuristic model for analysing historical urban environments and their long-term sustainability, bridging archaeology, history and environmental science.