Magnesium diboride (MgB2) is a superconductor characterized by interesting properties like rather high superconducting transition temperature Tc = 39 K, long coherence length and low anisotropy. In addition, it has a very simple crystal structure and low density. Those properties make the MgB2 an ideal candidate for a wide range of applications.To improve the electromagnetic properties of MgB2, magnetic nickel-cobalt-boron (NiCoB) nanoparticles (mean grain size 17 ± 3 nm) were added to Mg and B precursor powders and sintered at 650 C, i.e. the temperature of MgB2 superconductor formation. The nearly spherical NiCoB nanoparticles, as-prepared by the chemical reduction of metallic salts, were amorphous according to previous study. The resulting MgB2 sample, formed after the sintering at 650 C, was subjected to detailed microstructural analysis which included the application of various experimental methods: XRD, FE-SEM, EDS, elemental mapping, TEM and SAED. The methods confirmed the formation of new crystal CoNi phase (due to heat treatment at 650C), consisting of spherical nanoparticles (~ 6 nm) with tendency to spherical agglomerates formation. Those nanosized magnetic particles (characterized by the single domain magnetic structure and blocking temperature TB below room temperature), located at MgB2 grain boundaries, could serve as effective magnetic pinning centers in MgB2, thus improving its electromagnetic properties.