Heat a frying pan over medium heat and add the olive oil.
2 teaspoons olive oil
Once the pan is hot, add the onions and cook for 2-3 minutes, or until translucent, stirring frequently.
¼ medium onion
Add the garlic, salt, pepper, pepper flakes, and cumin, and cook for another minute.
1 clove garlic, 1 teaspoon sea salt, ½ teaspoon black pepper, ½ teaspoon hot pepper flakes, ½ teaspoon cumin
Stir in the beans. Use the back of a wooden spoon to mash well.
300 grams (1 ¾ cups) cooked or canned pinto beans
Add the tomatoes and stir to combine, mashing if needed. Cook for about 5 minutes longer over medium heat, stirring occasionally, until thickened and slightly browned.
150 grams (½ cup) diced canned tomatoes
Season if needed and serve hot with desired toppings.