An electrospark technology has been developed for obtaining a colloidal solution containing nanosized amorphous carbon. The advantages of the technology are its low cost and high performance. The colloidal solution of nanosized carbon is highly stable. The coatings on its basis are nanostructured. They are characterized by high adhesion and hydrophobicity. It was found that the propagation of microorganisms on nanosized carbon coatings is significantly hindered. At the same time, eukaryotic animal cells grow and develop on nanosized carbon coatings, as well as on the nitinol medical alloy. The use of a colloidal solution as available, cheap and non-toxic nanomaterial for the creation of antibacterial coatings to prevent biofilm formation seems to be very promising for modern medicine, pharmaceutical and food industries