It is well known that there is a fundamental contradiction between general relativity and quantum mechanics, which is expected to be solved by a yet unkown theory of quantum gravity. Considerable progress has been made in the past 30 years to deal with the fundamental contradiction by the approach of loop quantum gravity. In this talk, the basic ideas and structure of this theory will be outlined, and its applications in cosmology and black holes will be introduced.