She went to Italy intending to study literature.

Literal

She [topic-は] literary-research do [intention-つもりで] Italy [toward-へ] went.

つもりで ('with the intention of') marks the purpose of the trip. 文学研究する means 'to study/research literature.' へ marks the destination.