Herein, we report the preparation of crystalline mesoporous iron phosphate (FePO4, hereafter abbreviated as FeP) materials with 2D-plates and 1D-rods in the presence of an amphiphilic block copolymer (F127), iron nitrate, and phosphoric acid. The dimensionality of mesoporous FeP can be switched by changing the polarity of the synthetic medium.