This is an exposition of the subject, which was developed in the author's papers [19,20]. Various results from the theory of foliations (cohomology, characteristic classes, deformations, etc.) are extended to subalgebroids of Lie algebroids that generalize the tangent integrable distributions. We also suggest a definition of foliated Courant algebroids and give some corresponding results and constructions.