This review (with 172 references) highlights the progress made in the past 10 years in silica sol-gel-based materials for use in optical chemical sensing. Following an introduction, the processes leading to the sol-gel-based and ormosil materials, their printability and methods for characterisation are discussed. Then various classes of optical sensors, with a focus on sensors for pH values, oxygen, carbon dioxide, ammonia (also in dissolved form), and heavy metal ions are described. A further section covers nanoparticle-based optical sensors mainly for use in intracellular sensing of the above species. Recent developments in this area are also emphasised and future trends discussed.