As the anthropogenic greenhouse gas emissions continue imposing stress on our environment, it is becoming increasingly important to identify and implement new renewable technologies. Biogas production through anaerobic digestion has a great potential, since it links waste treatment with extraction of renewable energy, enabling circular bio-economies that are vital for a sustainable future.For biogas to have an important role as a renewable energy carrier in society, the scale of its production will need to be increased substantially. New substrates need to be introduced along with raising organic loading rates of the reactors to increase the rate of biogas production. This contributes to challenges in maintaining process stability, thus increasing the risk for process disturbances, including problems that were not commonly encountered before. These difficulties may be particularly pronounced when a broad range of new, largely untested substrates are introduced, leading to an increased heterogeneity of organic material entering the reactors. In the case of currently the most common reactor type; the continuous stirred-tank biogas reactor (CSTBR); such problems may include shifts in rheology (i.e. fluid behaviour) of the anaerobic digester sludge. This may lead to increased energy consumption and decreased digester mixing efficiencies, which in turn may lead to inefficient biogas processes, ultimately decreasing the economic and environmental viability of biogas production. Much is still unknown regarding how rheology shifts happen in biogas reactors, particularly when it comes to what role the substrate plays in rheological dynamics, as compared to the microbial community during varying levels of biogas process stability.This thesis elucidates the interactions between substrate type, microbial community and its metabolic activity, and anaerobic sludge rheology. A number of sludge samples from mesophilic and thermophilic CSTBRs digesting a broad range of substrates was analysed for their rheology. The specific effects of individual substrate types on CSTBR sludge rheology and the resulting implications for stirring power requirements and mixing efficiency were investigated. In order to also asses to which extent the microbial metabolism affects rheology at different levels of process disturbance, an experiment with a trace-element-induced inhibition of specific metabolic pathways under mesophilic reactor conditions was performed. This was used to identify the sequence of different interactions that occur in the reactor after the process begins to fail, and to evaluate how these interactions link to changes in digester sludge rheology. Finally, a case study of a disturbed thermophilic anaerobic digestion process was performed, including the monitoring of the response of rheology in relation to process stability, which was modified by changing trace element concentrations. The use of artificial substrate without polymeric compounds in both cases allowed for an evaluation of effects of the microbial community and its ...