Hi Wendy,
In Spanish, the syntax structure of the verb "gustar " works differently compared to other languages, like, say, English, Polish, or even Portuguese.
The order subject+verb+object is reversed and turns into Indirect Object+verb+subject. (Me gusta/n, Te gusta/n, Le gusta/n etc.)
There are other verbs that have this same structure: Doler (me duele), Encantar (me encanta), Interesar (me interesa).
Hope it helps!