The Dirichlet-type space Dp(1≤p≤2D^{p}\ (1 \leq p \leq 2) is the Banach space of functions analytic in the unit disc with derivatives belonging to the Bergman space ApA^{p}. Let Φ\Phi be an analytic self-map of the disc and define CΦ(f)=f∘ΦC_{\Phi }(f) = f \circ \Phi for f∈Dpf \in D^{p}. The operator CΦ:Dp→DpC_{\Phi }: D^{p} \rightarrow D^{p} is bounded (respectively, compact) if and only if a related measure μp\mu _{p} is Carleson (respectively, compact Carleson). If CΦC_{\Phi } is bounded (or compact) on DpD^{p}, then the same behavior holds on Dq(1≤q>pD^{q}\ (1 \leq q > p) and on the weighted Dirichlet space D2−pD_{2-p}. Compactness on DpD^{p} implies that CΦC_{\Phi } is compact on the Hardy spaces and the angular derivative exists nowhere on the unit circle. Conditions are given which, together with the angular derivative condition, imply compactness on the space DpD^{p}. Inner functions which induce bounded composition operators on DpD^{p} are discussed briefly.