Ti, Fe, and Co ions were implanted in two ceramics, SiC and Si 3 N 4 , to reach concentrations on the order of 10% over a depth of about 50-60 nm. X-ray absorption spectroscopy was performed at the K edge of the implanted ions to identify their local environment at the end of the implantation process. Ti was found to form Ti-C and Ti-N bonds whereas Co and Fe precipitated and formed clusters in Si 3 N 4 . CoSi was detected in SiC whereas, in the same matrix, Fe clusters coexist with FeSi. A coherent interpretation of these results is given in terms of the heat of reaction for all possible systems. We also successfully interpret in the same way some results found in literature in the case of implanted oxides.