Transparent and flexible gas-barrier materials have shown broad applications in electronics,f ood, and pharmaceutical preservation. Herein, we report ultrahigh-gas-barrier films with ab rick-mortar-sand structure fabricated by layerby-layer (LBL) assembly of XAl-layered double hydroxide (LDH, X = Mg, Ni, Zn, Co) nanoplatelets and polyacrylic acid (PAA) followed by CO 2 infilling,d enoted as (XAl-LDH/ PAA) n -CO 2 .T he near-perfectly parallel orientation of the LDH "brick"c reates al ong diffusion length to hinder the transmission of gas molecules in the PAA" mortar". Most significantly,b oth the experimental studies and theoretical simulations reveal that the chemically adsorbed CO 2 acts like "sand" to fill the free volume at the organic-inorganic interface,w hichf urther depresses the diffusion of permeating gas.The strategy presented here provides anew insight into the perception of barrier mechanism, and the (XAl-LDH/PAA) n -CO 2 film is among the best gas barrier films ever reported.