You are not from an EU country, Norway, Iceland, Liechtenstein or Switzerland and would like to study in Munich? Then you need a residence permit. You can apply for this online.
Editorially responsible for prodecure description: Landeshauptstadt München