Question: how to make mexican refried beans from scratch?
Answer: Chop the onion. ... 
In a medium-sized pan, heat the oil to medium and add the chopped onion. ... 
Add the chopped garlic and cook for 1 minute. ... 
Add the cooked beans with a little bit of the cooking water plus the salt and pepper.
Cook for 2 minutes before mashing.
Mash the beans to the consistency you prefer.