The invention relates to a device for attaching and guiding one or several pulley cords (9, 10) of a Jacquard machine, comprising one or several pulley blocks (11, 15, 17), each pulley block (11, 15, 17) being provided with at least two pulley wheels (6, 7) around which one or several pulley cords (9, 10) are passed and being provided with one or several pulley block guiding grooves (14) for guiding one or several guiding elements (13) which are designed to maintain the exact position of the one or several pulley blocks (11, 15, 17), the said pulley block guiding grooves (14) being provided outside the space between the said pulley wheels (6, 7).