Carbon/NiFe2O4 composite nanofibers have been successfully prepared by electrospinning method using a various concentration solution of Ni and Fe nitrates dispersed into polyacrylonitride (PAN) solution in N,N' dimethylformamide. The phase and mophology of PAN/NiFe2O4 composite samples were characterized and investigated by X-ray diffraction and scanning electron microscopy. The magnetic properties of the prepared samples were measured at ambient temperature by a vibrating sample magnetometer. It is found that all composite samples exhibit ferromagnetism. This could be local-structurally explained by the existed oxidation states of Ni2+ and Fe3+ in the samples. Moreover, local environments around Ni and Fe ions could be revealed by X-ray absorption spectroscopy (XAS) measurement including X-ray absorption near edge structure (XANES) and Extended X-ray absorption fine structure (EXAFS).