Me gusta el chocolate.
English: I like chocolate.
In Spanish, 'gustar' and similar verbs are used to express likes, interests, and preferences. The structure is different from English: the thing you like is the subject, and the person who likes it is indicated with an indirect object.
Use this structure to talk about things, activities, or people you like, love, interest you, or bother you. Other common verbs with this pattern are 'encantar' (to love), 'interesar' (to interest), and 'molestar' (to bother).
Me gusta el chocolate.
English: I like chocolate.
¿Te gustan los perros?
English: Do you like dogs?
A Juan le encanta la música.
English: Juan loves music.
Nos interesan los idiomas.
English: We are interested in languages.
A ellos les molesta el ruido.
English: Noise bothers them.