Credit risk is the most important risk a financial institution has to deal with. The Bank for International Settlements proposed an analytical model which allows banks to calculate capital requirements for credit risk of an investment portfolio. Also several optional models were developed by financial institutions to measure credit risk. This thesis compares two different approaches measuring credit risk: the first one, Basel II, was proposed by the Bank for International Settlements and is used by financial institutions, the other one, CreditMetrics, is an optional framework based on external rating and transition matrix. In the theoretical part, problems related to credit rating agencies are described. Furthermore, four optional models me...