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.
1/4 medium onion
Add the garlic, salt, pepper, pepper flakes, and cumin, and cook for another minute.
1 clove garlic, 1 teaspoon sea salt, 1/2 teaspoon black pepper, 1/2 teaspoon hot pepper flakes, 1/2 teaspoon cumin
Stir in the beans. Use the back of a wooden spoon to mash well.
300 grams 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 diced canned tomatoes
Season if needed and serve hot with desired toppings.