Chitosan-TiO2 shaped as macroporous aerogels, lamellar cryogels or electrospun films act synergistically as acid-base bifunctional catalysts. Depending on the topology of the material, a marked difference in the selectivity for nitroaldol condensation is observed.