Besides the beans - fat, salt, onion, and garlic are the main ingredients that give beans a good flavor. Refried beans are especially delicious because they are cooked twice - the first time, the flavors are blended from cooking low and slow for hours. The second time the liquid is drained, and the beans are fried in a pan with onion, garlic, and fat, then mashed. Tasty!