In double-entry bookkeeping, every transaction is recorded twice: once as a debit and once as a credit, and the two sides must be equal. Debit and credit do not mean "good" or "bad". They only say which side of an account an amount goes on.
A simple way to start: 1) Debits increase assets (such as cash) and expenses, and decrease liabilities, equity and income. 2) Credits do the opposite: they increase liabilities, equity and income, and decrease assets and expenses. 3) Example: if a business pays rent of 500 in cash, it debits Rent expense by 500 and credits Cash by 500.
If you get confused, ask two questions for each entry: which accounts changed, and did each one go up or down?
Which part of debits and credits do you find hardest to remember?