Any desired F:AI mole ratio in uncontaminated solid aluminum hydroxyfluorides may be obtained by electrolysis of a solution containing aluminum and fluoride in the desired ratio. The electrolysis process removes hydrochloric acid from solution; thus the sample solution is basicified without adulteration, since no chemical base was added to the system.