デパートへ 靴を 買い ___ 行きます。
To express the purpose of going somewhere, you use a verb stem + に + 行きます/来ます/帰ります. It means "to go (or come/return) for the purpose of doing something."
どこかへ行く目的を表すとき、「動詞のます形+に+行きます/来ます/帰ります」を使います。「~しに行く」という意味です。
Project Eagleなら、AIがあなたの弱点を一瞬で検知。豊富なクイズ・模擬試験・音声読み上げトレーニングで日本語を完全攻略!