The X-ray absorption near-edge structure of porous silicon with efficient photoluminescence (PL) produced by anodizing Si wafers in an HF-based etch shows the existence of a feature between those assigned to Si-Si and Si-O bonding, which we recently suggested results from the presence of Si-OH. The enhancement of PL intensity was also shown to be dependent on the relative numbers of Si-Si, Si-O and Si-OH bonds. Porous silicon with good visible PL has been produced using (i) photo-assisted etching in HF and (ii) NH 4 F:HF-based anodization, and the local structure of these materials is presented. Extended X-ray absorption fine structure (EXAFS) provides evidence for the presence of ~3 o configurational disorder above the thermal contribution in Si-Si-Si bond angles and for Si-O-Si bridges, i.e. for internal oxygen. In some samples which give strong visible PL, transmission electron microscopy shows that the majority of features on a scale of 5-10 nm have diffraction patterns indicating an amorphous structure. Information on the structure has been obtained as a function of depth from the reflected EXAFS