An implantable medical device intended for stimulation of excitable tissue where the electrode is adapted for achieving a better anchoring in human or animal tissue. The effect is achieved by applying micropatterns with a certain structure to specific parts of the implantable device. These microstructures facilitate a fast ingrowth of the device into adipose tissue.