Mi is used before a noun:
* Mi casa (My house)
* Mi libro (My book)
* Mi perro (My dog)
Me is used before a verb (usually as a direct object):
* Me gusta el café (I like coffee)
* Me duele la cabeza (My head hurts)
* Me compraste un regalo (You bought me a gift)
Here's a helpful way to remember:
* Mi is like "my" in English, used before a noun.
* Me is like "me" in English, used before a verb.
Let me know if you have any other Spanish grammar questions! 😊