Two organically templated beryllium phosphite and phosphate, [H 2 tmpda][Be 3 (HPO 3 ) 4 ] (1) and [H 2 ampy][Be 3 (HPO 4 ) 4 ] (2) [tmpda = N,N,NЈ,NЈ-tetramethyl-1,3-propanediamine, ampy = 3-(aminomethyl)pyridine], were synthesized and structurally characterized. Compound 1 exhibits a (3,4)-connected layered structure with eight-ring windows, and it has a 4 4 grid topology by regarding the heptameric [Be 3 (HPO 3 ) 4 ] group as a 4-connected node in the layer. Compound 2 possesses a different (3,4)-connected three-dimensional