Here, we present a protocol for the synthesis of porous barium titanate (BaTiO3) thin film by a surfactant-assisted sol-gel method, in which self-assembled amphipathic surfactant micelles are used as an organic template.