Method for the surface treatment of a dental implant or a prosthetic component made out of titanium or a titanium alloy, which enables an outer surface of the implant or the prosthetic component to be obtained with a notable capacity to prevent bacterial adhesion and offer a better aesthetic finish. This method comprises the steps of providing an outer surface of the implant or the prosthetic component with a surface roughness, and applying an anodizing treatment on the implant or the prosthetic component, smoothing the roughness and generating nanopores on this outer surface of the implant or the prosthetic component. The invention also relates to a dental implant or a prosthetic component made out of titanium or a titanium alloy, which comprises an outer surface that is rough and has nanopores.本發明揭示一種將由鈦或鈦合金製造的牙科植體或補體件進行表面處理的方法,其可得到防止細菌黏附的能力顯著之植體或補體件的外表面,且提供較佳的美感修整。此方法的步驟包含對植體或補體件外表面提供表面粗度,及對該植體或補體件施加陽極氧化處理,將該粗面平滑化且在該植體或補體件外表面上產生奈米孔。本發明亦關於一種由鈦或鈦合金製造的牙科植體或補體件,其包含粗且具有奈米孔的外表面。