A holding device (4) for holding lines (20) or cables of medical devices (2), the holding device (4) comprising a holder (41) having a multiplicity of attachment elements (42-45) integrally connected to each other for receiving a multiplicity of lines (20) or cables, each attachment element (42-45) comprising a guide opening (423-453) for receiving one or several line (20) or cable and a tab section (420-450) extending along a circumferential direction about a longitudinal direction (L) around the guide opening (423-453). Herein, the tab section (420-450) of a first of the multiplicity of attachment elements (42-45) is positioned at a different height, when viewed along the longitudinal direction (L), than the tab section (420-450) of a second of the multiplicity of attachment elements (42-45). In this way a holding device is provided which in an easy and comfortable manner allows for arranging a multiplicity of infusion lines for example on a rack carrying a multiplicity of medical devices, in particular infusion pumps.