Add sofrito to a pot over medium high heat. Cook until fragrant, about 2 minutes. If using diced ham, add it now and cook with the sofrito.
Add tomato sauce, beans, olives, water, chicken bouillon, seasonings and stir to combine.
Add onion, potatoes or calabaza, cilantro (if using) and bring to a boil.
Cover the pot and reduce heat to low. Simmer for about 20 minutes or until beans are tender and the broth has thickened.
Once beans are cooked, remove onion and cilantro sprigs. Serve and enjoy!
TIP: if your bean broth is too thin, take a small scoop of beans and mash them in a bowl. Add the bean paste to the broth and stir until well combined. This will thicken the broth nicely.