Place beans in a pot with enough water to cover it about 1 inch above, add little chopped onions.
Boil until the beans is very soft. The water should have dried by now.
Use a potato masher, fork or wooden spoon, mash the beans into a pulp. Set aside.
In a frying pan over medium heat, add oil, when hot, add onions and fry until softened.
Add garlic, salt, pepper and tomato paste. Stir and fry until fragrant.
Pour in the mashed beans and fry for about 5 minutes.
Take off the heat and serve.
Serve Nigerian refried beans on its own or as a side for fried, boiled or roasted plantain, soaked garri, white rice with Nigerian tomato stew, jollof rice, bread, toast, East African chapati, vegetable chapati, yam etc. It can also be used to fill Ripe plantain dough empanada, green plantain empanada, burrito, tortilla etc.