In the Drosophila larva, major proprioceptive input is provided to the brain by sub-epidermal stretch receptors called chordotonal organs (ChO). Similarly to the body wall muscle that needs to be attached on both of its sides to the larval exoskeleton in order to generate movement, the sensory unit of a ChO must be stably anchored to the cuticle on both of its sides in order to sense the relative displacement of body parts. Through an RNAi screen we have identified thrombospondin (Tsp), a secreted calcium binding glycoprotein, as a critical component in the anchoring of ChOs to the cuticle. We show that the Tsp protein starts to accumulate in the extracellular matrix (ECM) surrounding the ChO attachment cells towards the end of embryogenesis and that it becomes highly concentrated at the attachment junction during larval stages. In the absence of Tsp, the ChO's accessory cells fail to form a stable junction with their epidermal attachment cells and organ integrity is not maintained. Tsp is a known player in the establishment of the myotendinous junctions in both invertebrates and vertebrates. Thus, our findings extend the known similarities between muscle-attachment and ChO-attachment cells. In addition to its role in establishing the ChO attachment junctions, Tsp was found to affect ligament cell migration and cap cell elongation. Most interestingly, the Tsp protein was found to decorate the ChO cap cells along their entire length, suggesting that the elongated cap cells are supported by the ECM to which they attach via integrin-based, Tsp-dependent, adhesion plaques. The ECM enwrapping the cap cells is probably important for keeping the cap cells fasciculate and may also provide mechanical support that allows the extremely elongated cells to maintain tension.