Sort the beans well to remove any shriveled beans or debris. Rinse the beans in a colander under running water. Transfer the beans to a large bowl, add about 6 cups of water, soak overnight or for 8-10 hours
Press the ‘SAUTE’ button, and set it to ‘NORMAL’. Once its displays, ‘HOT’, then add olive oil, add chopped onion and sauté until translucent.
Add minced garlic, sauté until the garlic is fragrant.
Add the spices and sauté for another 30 seconds.
Add about 1/2 cup of water or broth and scrape the bottom of the pot to remove anything that is stuck at the bottom of the pot.
Press ‘CANCEL’ to switch off the “SAUTE’ mode.
Drain the beans and add them to the pot. Add the remaining 3.5 cups of water or broth and bay leaves (if using). Give everything a good mix.
Close the lid of the Instant Pot. Set the valve to ‘SEALING’. Pressure cook on high for 15 minutes. It will take some time for the pressure to build up (about 16 minutes), after which the timer will begin.
Once the cooking cycle is complete, let the pot depressurize naturally.
Press ‘CANCEL’ and switch off the IP. Once the silver pin drops, turn the knob to ‘VENTING’ and open the lid away from you.
Drain the beans through a colander, reserving the liquid. Discard the bay leaves.
Purée the beans with an immersion blender, adding the reserved liquid little at a time, until you reach your desired consistency. I used about 1.75 cups of the liquid to purée the beans. Drizzle some freshly squeezed lime or lemon juice, and mix well.
For chunky refried beans you may also use a potato masher to mash the beans.
Check for seasoning and adjust with more salt if required. I added another 1/2 teaspoon of salt.
Dish out the refried beans, garnish with diced onions, tomatoes, crumbled cotija cheese, queso fresco, or Mexican shredded cheese, and chopped cilantro.