Pyrolysis is a thermochemical treatment that involves heating organic material in the absence of oxygen to produce solid, liquid, and gaseous products. It allows materials and waste to be upcycled into more valuable products. Pyrolysis of biomass can produce bio-oils, biochar, syngas and other products using a small, modular system. Sludge pyrolysis offers an alternative to landfilling or incineration for sewage sludge treatment by first drying the sludge and then pyrolyzing it in an oxygen-free atmosphere to produce gas and other products.