A conventional lens has well-defined transfer function with which we can form an image of a target object. On the contrary, scattering media such as biological tissues, multimode optical fibers and layers of disordered nanoparticles have highly complex transfer function, which makes them impractical for the general imaging purpose. In recent studies, we presented a method of experimentally recording the transmission matrix of such media, which is a measure of the transfer function. In this review paper, we introduce two major applications of the transmission matrix: enhancing light energy delivery and imaging through scattering media. For the former, we identified the eigenchannels of the transmission matrix with large eigenvalues and then coupled light to those channels in order to enhance light energy delivery through the media. For the latter, we solved matrix inversion problem to reconstruct an object image from the distorted image by the scattering media. We showed the enlargement of the numerical aperture of imaging systems with the use of scattering media and demonstrated endoscopic imaging through a single multimode optical fiber working in both reflectance and fluorescence modes. Our approach will pave the way of using scattering media as unique optical elements for various biophotonics applications.