Hola, students! Think about the last time you said "I like to dance" or "I don't like to write." Today you'll learn to say exactly that in Spanish, with a tiny pattern you can reuse for any activity. It's short and it shows up on Spanish 1 exams, so let's go.
Let's put some faces to those endings. Watch the lines connect. Hablar means to talk, comer means to eat, vivir means to live. Then these three are the activities in our lesson: bailar, to dance, leer, to read, and escribir, to write. See the endings? Bailar is -ar, leer is -er, escribir is -ir. Same rule every time.
Now the star of the show: the verb gustar, which we use to express likes and dislikes. Look at the sentence Me gusta bailar. Me points to the person who likes it, that's me. Gusta carries the idea of liking. And bailar, the infinitive, is the activity. Put it together and you get "I like to dance." The infinitive simply follows me gusta. That's the whole mechanism.