We present experimental and calculated Al K-edge X-ray absorption near-edge structure (XANES) spectra of aluminous goethite with 10 to 33 mol % of AlOOH and diaspore. Significant changes are observed experimentally in the near and pre-edge regions with increasing Al concentration in goethite. First-principles calculations based on density-functional theory (DFT) reproduce successfully the experimental trends. This permit to identify the electronic and structural parameters controlling the spectral features and to improve our knowledge of the local environment of Al 3+ in the goethite-diaspore partial solid solution.In the near-edge region, the larger peak spacing in diaspore compared to Al-bearing goethite is related to the nature (Fe or Al) of the first cation neighbours around the absorbing Al atom (Al*). The intensity ratio of the two near-edge peaks, which decreases with Al concentration, is correlated with the average distance of the first cations around Al* and the distortion of the AlO 6 octahedron. Finally, the decrease in intensity of the pre-edge features with increasing Al concentration is due to the smaller number of Fe atoms in the local environment of Al since Al atoms tend to cluster. In addition, it is found that the pre-edge features of the Al K-edge XANES spectra enable to probe indirectly empty 3d states of Fe. Energetic, structural and spectroscopic results suggest that for Al concentrations around 10 mol %, Al atoms can be considered as isolated whereas above 25 mol %, Al clusters are more likely to occur.