Sofrito is heavily emphasized as the third critical component in a "sofregit" base along with tomatoes and onions. Garlic is optional, as it is not considered an integral part of the standard "sofregit" recipe. Some "sofregit" recipes do not contain tomatoes at all, but are made more complex with the addition of diced vegetables such as leeks or bell peppers. In Italian cuisine, chopped onions, carrots and celery is battuto, and then, slowly cooked in olive oil, becomes "soffritto". It is used as the base for most pasta sauces, such as arrabbiata sauce, but occasionally it can be used as the
Pasta e fagioli such as elbow macaroni or ditalini. The base typically includes olive oil, garlic, minced onion, celery, carrots and often stewed tomatoes or tomato paste. Some variations omit tomatoes and instead use a broth base. Preparation may be vegetarian, or contain meat (often bacon or pancetta) or a meat-based stock. The recipe varies greatly based on the region or town in which it is prepared, depending on available ingredients. The consistency of the dish can vary, with some being soupy, while others are much thicker. For instance, in Bari the dish is thicker in consistency and uses mixed pasta shapes. It