Switchable solvent N, N, N', N'-tetraethyl-1, 3-propanediamine was dissociated into cationic surfactant to promote cell disruption and lipid extraction from wet microalgae for biodiesel production.