An atomistic model of layered double hydroxides, an important class of nanoporous materials, is presented. These materials have wide applications, ranging from adsorbents for gases and liquid ions to nanoporous membranes and catalysts. They consist of two types of metallic cations that are accommodated by a close-packed configuration of OH- and other anions in a positively charged brucitelike layer. Water and various anions are distributed in the interlayer space for charge compensation. A modified form of the consistent-valence force field, together with energy minimization and molecular dynamics simulations, is utilized for developing an atomistic model of the materials. To test the accuracy of the model, we compare the vibrational frequencies, x-ray diffraction patterns, and the basal spacing of the material, computed using the atomistic model, with our experimental data over a wide range of temperature. Good agreement is found between the computed and measured quantities.