The basic accounting equations is the following:
Assets= Liabilities + Capital
If you notice a balance sheet you will see that it has these three sections which by construction are meant to balance. When a debit is posted, an equal credit has to be also posted.