There is mixed empirical evidence on whether close banking relationships are associated with lower or higher earnings quality of borrowing firms. This paper analyzes how this evidence can be explained by the role of the bank, whether the bank is a creditor or equity-holder of the firm. We use a sample of Japanese public firms. In Japan, (1) banks historically have both close financial and personal ties to borrowing firms, (2) banks are not only lenders, but are also permitted to have an equity stake in the firm, and (3) detailed data on bank relationship characteristics are publicly available.One key result is that relationship banking is associated with lower earnings quality if the bank only provides debt. This effect is more pronounced in years of economic expansion. The results are in line with the theoretical literature, which argues that borrowing firms that want to conceal good performance from competitors benefit from relationship banking because banks’ access to private information lowers the demand for high earnings quality. However, if banks have an equity stake, they are more concerned about complying with insider-trading rules and governing agency problems of equity by efficient executive compensation contracts. Consistently, the second main finding is that the firm's earnings quality improves significantly with a bank's equity stake, regardless of the state of the economy. These results are robust according to various specifications of relationship banking or earnings quality.