How do I know when to use Akkusativ and when to use Dativ? Is there a rule?

Just for you guys to understand how it works. We will still have a lot of teaching on the German cases and when to use each one :)

언어 선생님 이신가요?

Flag fr Flag es Flag en 英語 Flag it Flag de Flag pt Flag ja 日本語